fix: add decorator to story

This commit is contained in:
RadoslavDimchev 2023-08-29 09:48:03 +03:00
parent 5c6622c10a
commit 7dd5d4c1c3
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,7 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import ValidatorSetup from './ValidatorSetup' import ValidatorSetup from './ValidatorSetup'
import { withRouter } from 'storybook-addon-react-router-v6'
const meta = { const meta = {
title: 'ValidatorOnboarding/ValidatorSetup', title: 'ValidatorOnboarding/ValidatorSetup',
@ -10,6 +11,7 @@ const meta = {
}, },
tags: ['autodocs'], tags: ['autodocs'],
argTypes: {}, argTypes: {},
decorators: [withRouter()],
} satisfies Meta<typeof ValidatorSetup> } satisfies Meta<typeof ValidatorSetup>
export default meta export default meta