fix(stories): add router decorators after add link to landing
This commit is contained in:
parent
e29823ed9c
commit
d7b4fcc8e7
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue