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 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>