fix(manage-validator-stories): add router decorators

This commit is contained in:
RadoslavDimchev 2024-04-15 13:09:34 +03:00 committed by Radoslav Dimchev
parent 521e88f75a
commit c41c5528e8
3 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>