mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-18 06:16:38 +00:00
feat(panel-wrapper): create story with examples
This commit is contained in:
parent
1b0d21c2d3
commit
c30a643b7b
@ -0,0 +1,26 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
|
import PanelWrapper from './PanelWrapper'
|
||||||
|
import MigratePanel from './MigratePanel'
|
||||||
|
import DepositPanel from './DepositPanel'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'ValidatorManagement/PanelWrapper',
|
||||||
|
component: PanelWrapper,
|
||||||
|
tags: ['autodocs'],
|
||||||
|
} satisfies Meta<typeof PanelWrapper>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const WrappedMigratePanel: Story = {
|
||||||
|
args: {
|
||||||
|
children: <MigratePanel />,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const WrappedDepositPanel: Story = {
|
||||||
|
args: {
|
||||||
|
children: <DepositPanel />,
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user