mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-23 01:38:57 +00:00
fix: add decorators with router
This commit is contained in:
parent
4a851108ca
commit
91cae3f39d
@ -1,6 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import ConnectDevicePage from './ConnectDevicePage'
|
import ConnectDevicePage from './ConnectDevicePage'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Pages/ConnectDevicePage',
|
title: 'Pages/ConnectDevicePage',
|
||||||
@ -10,6 +11,7 @@ const meta = {
|
|||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
argTypes: {},
|
argTypes: {},
|
||||||
|
decorators: [withRouter],
|
||||||
} satisfies Meta<typeof ConnectDevicePage>
|
} satisfies Meta<typeof ConnectDevicePage>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import CreateLocalNodePage from './CreateLocalNodePage'
|
import CreateLocalNodePage from './CreateLocalNodePage'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'Pages/CreateLocalNodePage',
|
title: 'Pages/CreateLocalNodePage',
|
||||||
@ -10,6 +11,7 @@ const meta = {
|
|||||||
},
|
},
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
argTypes: {},
|
argTypes: {},
|
||||||
|
decorators: [withRouter],
|
||||||
} satisfies Meta<typeof CreateLocalNodePage>
|
} satisfies Meta<typeof CreateLocalNodePage>
|
||||||
|
|
||||||
export default meta
|
export default meta
|
||||||
|
Loading…
x
Reference in New Issue
Block a user