From 9ce082eb404293156d177b1b22adba4d61971424 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 26 Mar 2024 10:25:18 +0200 Subject: [PATCH] fix(validator-stories): add decorators --- .../ValidatorBlueSection/ValidatorBlueSection.stories.tsx | 2 ++ .../ManagementTable/ManagementTableBody.stories.tsx | 2 ++ .../ManagementTable/ManagementTableRow.stories.tsx | 2 ++ 3 files changed, 6 insertions(+) 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