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 Header from './Header'
|
||||
import { withRouter } from 'storybook-addon-react-router-v6'
|
||||
|
||||
const meta = {
|
||||
title: 'General/Header',
|
||||
|
@ -8,6 +9,7 @@ const meta = {
|
|||
parameters: {
|
||||
layout: 'centered',
|
||||
},
|
||||
decorators: [withRouter],
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof Header>
|
||||
|
||||
|
|
Loading…
Reference in New Issue