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