From d7b4fcc8e7cf2cc598b91da4695b842165bede40 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Fri, 12 Apr 2024 17:23:06 +0300 Subject: [PATCH] fix(stories): add router decorators after add link to landing --- src/components/General/NimbusText.stories.tsx | 2 ++ src/components/Logos/NimbusLogo.stories.ts | 2 ++ src/components/Logos/NimbusLogoMark.stories.tsx | 2 ++ src/pages/ValidatorManagement/ManagementHeader.stories.ts | 2 ++ 4 files changed, 8 insertions(+) diff --git a/src/components/General/NimbusText.stories.tsx b/src/components/General/NimbusText.stories.tsx index b1fe166f..2c13e35a 100644 --- a/src/components/General/NimbusText.stories.tsx +++ b/src/components/General/NimbusText.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import NimbusText from './NimbusText' @@ -8,6 +9,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta diff --git a/src/components/Logos/NimbusLogo.stories.ts b/src/components/Logos/NimbusLogo.stories.ts index 39166874..1450dd15 100644 --- a/src/components/Logos/NimbusLogo.stories.ts +++ b/src/components/Logos/NimbusLogo.stories.ts @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import NimbusLogo from './NimbusLogo' @@ -8,6 +9,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta diff --git a/src/components/Logos/NimbusLogoMark.stories.tsx b/src/components/Logos/NimbusLogoMark.stories.tsx index 6a28f068..d016fd7e 100644 --- a/src/components/Logos/NimbusLogoMark.stories.tsx +++ b/src/components/Logos/NimbusLogoMark.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import NimbusLogoMark from './NimbusLogoMark' @@ -6,6 +7,7 @@ const meta = { title: 'General/NimbusLogoMark', component: NimbusLogoMark, tags: ['autodocs'], + decorators: [withRouter()], } satisfies Meta export default meta diff --git a/src/pages/ValidatorManagement/ManagementHeader.stories.ts b/src/pages/ValidatorManagement/ManagementHeader.stories.ts index ede987a7..39992c4c 100644 --- a/src/pages/ValidatorManagement/ManagementHeader.stories.ts +++ b/src/pages/ValidatorManagement/ManagementHeader.stories.ts @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import ManagementHeader from './ManagementHeader' @@ -8,6 +9,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta