fix(stories): add router decorators after add link to landing

This commit is contained in:
RadoslavDimchev 2024-04-12 17:23:06 +03:00 committed by Emil Ivanichkov
parent e29823ed9c
commit d7b4fcc8e7
4 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusText from './NimbusText'
@ -8,6 +9,7 @@ const meta = {
parameters: {
layout: 'centered',
},
decorators: [withRouter()],
tags: ['autodocs'],
} satisfies Meta<typeof NimbusText>

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusLogo from './NimbusLogo'
@ -8,6 +9,7 @@ const meta = {
parameters: {
layout: 'centered',
},
decorators: [withRouter()],
tags: ['autodocs'],
} satisfies Meta<typeof NimbusLogo>

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import NimbusLogoMark from './NimbusLogoMark'
@ -6,6 +7,7 @@ const meta = {
title: 'General/NimbusLogoMark',
component: NimbusLogoMark,
tags: ['autodocs'],
decorators: [withRouter()],
} satisfies Meta<typeof NimbusLogoMark>
export default meta

View File

@ -1,4 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react'
import { withRouter } from 'storybook-addon-react-router-v6'
import ManagementHeader from './ManagementHeader'
@ -8,6 +9,7 @@ const meta = {
parameters: {
layout: 'centered',
},
decorators: [withRouter()],
tags: ['autodocs'],
} satisfies Meta<typeof ManagementHeader>