fix(management-table-story): add router decorator

This commit is contained in:
RadoslavDimchev 2024-04-09 23:58:57 +03:00 committed by Emil Ivanichkov
parent 7c1d08bc71
commit 8d0bc1af34
1 changed files with 2 additions and 0 deletions

View File

@ -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 ManagementTable from './ManagementTable' import ManagementTable from './ManagementTable'
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 ManagementTable> } satisfies Meta<typeof ManagementTable>