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 { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ExitPanel from './ExitPanel'
|
||||
|
||||
const meta = {
|
||||
title: 'ManageValidator/ExitPanel',
|
||||
component: ExitPanel,
|
||||
decorators: [withRouter()],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ExitPanel>
|
||||
|
||||
|
|
|
@ -1,10 +1,12 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import MigratePanel from './MigratePanel'
|
||||
|
||||
const meta = {
|
||||
title: 'ManageValidator/MigratePanel',
|
||||
component: MigratePanel,
|
||||
decorators: [withRouter()],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof MigratePanel>
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import PanelWrapper from './PanelWrapper'
|
||||
import MigratePanel from './MigratePanel'
|
||||
|
@ -6,6 +7,7 @@ import MigratePanel from './MigratePanel'
|
|||
const meta = {
|
||||
title: 'ManageValidator/PanelWrapper',
|
||||
component: PanelWrapper,
|
||||
decorators: [withRouter()],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof PanelWrapper>
|
||||
|
||||
|
|
Loading…
Reference in New Issue