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 { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ValidatorListItem from './ValidatorListItem'
|
||||
|
||||
|
@ -8,6 +9,7 @@ const meta = {
|
|||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
decorators: [withRouter()],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof ValidatorListItem>
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ValidatorNameAddress from './ValidatorNameAddress'
|
||||
|
||||
|
@ -6,6 +7,7 @@ const meta = {
|
|||
title: 'General/ValidatorNameAddress',
|
||||
component: ValidatorNameAddress,
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter()],
|
||||
} satisfies Meta<typeof ValidatorNameAddress>
|
||||
|
||||
export default meta
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import type { Meta, StoryObj } from '@storybook/react'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
import ValidatorProfile from './ValidatorProfile'
|
||||
|
||||
|
@ -6,6 +7,7 @@ const meta = {
|
|||
title: 'General/ValidatorProfile',
|
||||
component: ValidatorProfile,
|
||||
tags: ['autodocs'],
|
||||
decorators: [withRouter()],
|
||||
} satisfies Meta<typeof ValidatorProfile>
|
||||
|
||||
export default meta
|
||||
|
|
Loading…
Reference in New Issue