mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-03-02 20:10:45 +00:00
fix(manage-validator-stories): add router decorators
This commit is contained in:
parent
521e88f75a
commit
c41c5528e8
@ -1,10 +1,12 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
import ExitPanel from './ExitPanel'
|
import ExitPanel from './ExitPanel'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'ManageValidator/ExitPanel',
|
title: 'ManageValidator/ExitPanel',
|
||||||
component: ExitPanel,
|
component: ExitPanel,
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ExitPanel>
|
} satisfies Meta<typeof ExitPanel>
|
||||||
|
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
import MigratePanel from './MigratePanel'
|
import MigratePanel from './MigratePanel'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'ManageValidator/MigratePanel',
|
title: 'ManageValidator/MigratePanel',
|
||||||
component: MigratePanel,
|
component: MigratePanel,
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof MigratePanel>
|
} satisfies Meta<typeof MigratePanel>
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
import PanelWrapper from './PanelWrapper'
|
import PanelWrapper from './PanelWrapper'
|
||||||
import MigratePanel from './MigratePanel'
|
import MigratePanel from './MigratePanel'
|
||||||
@ -6,6 +7,7 @@ import MigratePanel from './MigratePanel'
|
|||||||
const meta = {
|
const meta = {
|
||||||
title: 'ManageValidator/PanelWrapper',
|
title: 'ManageValidator/PanelWrapper',
|
||||||
component: PanelWrapper,
|
component: PanelWrapper,
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof PanelWrapper>
|
} satisfies Meta<typeof PanelWrapper>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user