fix: add with router decorator for header story
This commit is contained in:
parent
001cfee956
commit
f926cd4860
|
@ -1,6 +1,7 @@
|
||||||
import type { Meta, StoryObj } from '@storybook/react'
|
import type { Meta, StoryObj } from '@storybook/react'
|
||||||
|
|
||||||
import Header from './Header'
|
import Header from './Header'
|
||||||
|
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||||
|
|
||||||
const meta = {
|
const meta = {
|
||||||
title: 'General/Header',
|
title: 'General/Header',
|
||||||
|
@ -8,6 +9,7 @@ const meta = {
|
||||||
parameters: {
|
parameters: {
|
||||||
layout: 'centered',
|
layout: 'centered',
|
||||||
},
|
},
|
||||||
|
decorators: [withRouter],
|
||||||
tags: ['autodocs'],
|
tags: ['autodocs'],
|
||||||
} satisfies Meta<typeof Header>
|
} satisfies Meta<typeof Header>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue