fix(validator-stories): add decorators

This commit is contained in:
RadoslavDimchev 2024-03-26 10:25:18 +02:00 committed by Emil Ivanichkov
parent 0b8148efcb
commit 9ce082eb40
3 changed files with 6 additions and 0 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>