fix(stories): add router decorators after add link to landing

This commit is contained in:
RadoslavDimchev 2024-04-12 17:23:06 +03:00 committed by Emil Ivanichkov
parent e29823ed9c
commit d7b4fcc8e7
4 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusText from './NimbusText' import NimbusText from './NimbusText'
@ -8,6 +9,7 @@ const meta = {
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
decorators: [withRouter()],
tags: ['autodocs'], tags: ['autodocs'],
} satisfies Meta<typeof NimbusText> } satisfies Meta<typeof NimbusText>

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusLogo from './NimbusLogo' import NimbusLogo from './NimbusLogo'
@ -8,6 +9,7 @@ const meta = {
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
decorators: [withRouter()],
tags: ['autodocs'], tags: ['autodocs'],
} satisfies Meta<typeof NimbusLogo> } satisfies Meta<typeof NimbusLogo>

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusLogoMark from './NimbusLogoMark' import NimbusLogoMark from './NimbusLogoMark'
@ -6,6 +7,7 @@ const meta = {
title: 'General/NimbusLogoMark', title: 'General/NimbusLogoMark',
component: NimbusLogoMark, component: NimbusLogoMark,
tags: ['autodocs'], tags: ['autodocs'],
decorators: [withRouter()],
} satisfies Meta<typeof NimbusLogoMark> } satisfies Meta<typeof NimbusLogoMark>
export default meta export default meta

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import ManagementHeader from './ManagementHeader' import ManagementHeader from './ManagementHeader'
@ -8,6 +9,7 @@ const meta = {
parameters: { parameters: {
layout: 'centered', layout: 'centered',
}, },
decorators: [withRouter()],
tags: ['autodocs'], tags: ['autodocs'],
} satisfies Meta<typeof ManagementHeader> } satisfies Meta<typeof ManagementHeader>