diff --git a/src/pages/ManageValidator/RightManagePanels/ExitPanel.stories.tsx b/src/pages/ManageValidator/RightManagePanels/ExitPanel.stories.tsx index 72bc70bf..efde1b74 100644 --- a/src/pages/ManageValidator/RightManagePanels/ExitPanel.stories.tsx +++ b/src/pages/ManageValidator/RightManagePanels/ExitPanel.stories.tsx @@ -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 diff --git a/src/pages/ManageValidator/RightManagePanels/MigratePanel.stories.tsx b/src/pages/ManageValidator/RightManagePanels/MigratePanel.stories.tsx index 4fb478b3..93e011da 100644 --- a/src/pages/ManageValidator/RightManagePanels/MigratePanel.stories.tsx +++ b/src/pages/ManageValidator/RightManagePanels/MigratePanel.stories.tsx @@ -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 diff --git a/src/pages/ManageValidator/RightManagePanels/PanelWrapper.stories.tsx b/src/pages/ManageValidator/RightManagePanels/PanelWrapper.stories.tsx index 7d3d9323..4699b369 100644 --- a/src/pages/ManageValidator/RightManagePanels/PanelWrapper.stories.tsx +++ b/src/pages/ManageValidator/RightManagePanels/PanelWrapper.stories.tsx @@ -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