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 { 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<typeof NimbusText>
|
||||
|
||||
|
|
|
@ -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<typeof NimbusLogo>
|
||||
|
||||
|
|
|
@ -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<typeof NimbusLogoMark>
|
||||
|
||||
export default meta
|
||||
|
|
|
@ -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<typeof ManagementHeader>
|
||||
|
||||
|
|
Loading…
Reference in New Issue