mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-28 02:50:45 +00:00
feat(panel-content): create story
This commit is contained in:
parent
7b90e3782e
commit
1323499a3f
@ -0,0 +1,30 @@
|
|||||||
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
|
import PanelContent from './PanelContent'
|
||||||
|
import MigratePanel from './MigratePanel'
|
||||||
|
|
||||||
|
const meta = {
|
||||||
|
title: 'ManageValidator/PanelContent',
|
||||||
|
component: PanelContent,
|
||||||
|
decorators: [withRouter()],
|
||||||
|
tags: ['autodocs'],
|
||||||
|
} satisfies Meta<typeof PanelContent>
|
||||||
|
|
||||||
|
export default meta
|
||||||
|
type Story = StoryObj<typeof meta>
|
||||||
|
|
||||||
|
export const MigratePanelContent: Story = {
|
||||||
|
args: {
|
||||||
|
children: <MigratePanel />,
|
||||||
|
title: 'Migrate Validator',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
export const MigratePanelModalContent: Story = {
|
||||||
|
args: {
|
||||||
|
children: <MigratePanel />,
|
||||||
|
title: 'Migrate Validator',
|
||||||
|
isModalWidth: true,
|
||||||
|
},
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user