fix: add decorators with router

This commit is contained in:
RadoslavDimchev 2023-08-22 13:17:20 +03:00
parent 4a851108ca
commit 91cae3f39d
2 changed files with 4 additions and 0 deletions

View File

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

View File

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