fix(validator-stories): add decorators
This commit is contained in:
parent
0b8148efcb
commit
9ce082eb40
|
@ -1,10 +1,12 @@
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
import ValidatorBlueSection from './ValidatorBlueSection'
|
import ValidatorBlueSection from './ValidatorBlueSection'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'ManageValidator/ValidatorBlueSection',
|
title: 'ManageValidator/ValidatorBlueSection',
|
||||||
component: ValidatorBlueSection,
|
component: ValidatorBlueSection,
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ValidatorBlueSection>
|
} satisfies Meta<typeof ValidatorBlueSection>
|
||||||
|
|
||||||
|
|
|
@ -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 ManagementTableBody from './ManagementTableBody'
|
import ManagementTableBody from './ManagementTableBody'
|
||||||
import { VALIDATORS_DATA } from '../../../constants'
|
import { VALIDATORS_DATA } from '../../../constants'
|
||||||
|
@ -9,6 +10,7 @@ const meta = {
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ManagementTableBody>
|
} satisfies Meta<typeof ManagementTableBody>
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import ManagementTableRow from './ManagementTableRow'
|
import ManagementTableRow from './ManagementTableRow'
|
||||||
|
@ -9,6 +10,7 @@ const meta = {
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
|
decorators: [withRouter()],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof ManagementTableRow>
|
} satisfies Meta<typeof ManagementTableRow>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue