fix(validator stories): add decorator for router
This commit is contained in:
parent
e14ffc08c6
commit
9b7cf9febd
|
@ -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 ValidatorListItem from './ValidatorListItem'
|
import ValidatorListItem from './ValidatorListItem'
|
||||||
|
|
||||||
|
@ -8,6 +9,7 @@ const meta = {
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ValidatorListItem>
|
} satisfies Meta<typeof ValidatorListItem>
|
||||||
|
|
||||||
|
|
|
@ -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 ValidatorNameAddress from './ValidatorNameAddress'
|
import ValidatorNameAddress from './ValidatorNameAddress'
|
||||||
|
|
||||||
|
@ -6,6 +7,7 @@ const meta = {
|
||||||
title: 'General/ValidatorNameAddress',
|
title: 'General/ValidatorNameAddress',
|
||||||
component: ValidatorNameAddress,
|
component: ValidatorNameAddress,
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
|
decorators: [withRouter()],
|
||||||
} satisfies Meta<typeof ValidatorNameAddress>
|
} satisfies Meta<typeof ValidatorNameAddress>
|
||||||
|
|
||||||
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 ValidatorProfile from './ValidatorProfile'
|
import ValidatorProfile from './ValidatorProfile'
|
||||||
|
|
||||||
|
@ -6,6 +7,7 @@ const meta = {
|
||||||
title: 'General/ValidatorProfile',
|
title: 'General/ValidatorProfile',
|
||||||
component: ValidatorProfile,
|
component: ValidatorProfile,
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
|
decorators: [withRouter()],
|
||||||
} satisfies Meta<typeof ValidatorProfile>
|
} satisfies Meta<typeof ValidatorProfile>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
|
Loading…
Reference in New Issue