diff --git a/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorBlueSection.stories.tsx b/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorBlueSection.stories.tsx index df647075..cfefacbc 100644 --- a/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorBlueSection.stories.tsx +++ b/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorBlueSection.stories.tsx @@ -1,10 +1,12 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import ValidatorBlueSection from './ValidatorBlueSection' const meta = { title: 'ManageValidator/ValidatorBlueSection', component: ValidatorBlueSection, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta diff --git a/src/pages/ValidatorManagement/ManagementTable/ManagementTableBody.stories.tsx b/src/pages/ValidatorManagement/ManagementTable/ManagementTableBody.stories.tsx index 3f5044b8..eb7235f5 100644 --- a/src/pages/ValidatorManagement/ManagementTable/ManagementTableBody.stories.tsx +++ b/src/pages/ValidatorManagement/ManagementTable/ManagementTableBody.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import ManagementTableBody from './ManagementTableBody' import { VALIDATORS_DATA } from '../../../constants' @@ -9,6 +10,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta diff --git a/src/pages/ValidatorManagement/ManagementTable/ManagementTableRow.stories.tsx b/src/pages/ValidatorManagement/ManagementTable/ManagementTableRow.stories.tsx index 9c2f88c2..ec4f5843 100644 --- a/src/pages/ValidatorManagement/ManagementTable/ManagementTableRow.stories.tsx +++ b/src/pages/ValidatorManagement/ManagementTable/ManagementTableRow.stories.tsx @@ -1,3 +1,4 @@ +import { withRouter } from 'storybook-addon-react-router-v6' import type { Meta, StoryObj } from '@storybook/react' import ManagementTableRow from './ManagementTableRow' @@ -9,6 +10,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta