fix: add with router decorator for header story

This commit is contained in:
RadoslavDimchev 2024-01-05 15:08:23 +02:00
parent 001cfee956
commit f926cd4860
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 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>