From 91cae3f39db7ed7e9f6dce2f36fa4911eae6ca08 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 22 Aug 2023 13:17:20 +0300 Subject: [PATCH] fix: add decorators with router --- src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts | 2 ++ src/pages/CreateLocalNodePage/CreateLocalNodePage.stories.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts b/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts index 77185299..5793f322 100644 --- a/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts +++ b/src/pages/ConnectDevicePage/ConnectDevicePage.stories.ts @@ -1,6 +1,7 @@ import type { Meta, StoryObj } from '@storybook/react' import ConnectDevicePage from './ConnectDevicePage' +import { withRouter } from 'storybook-addon-react-router-v6' const meta = { title: 'Pages/ConnectDevicePage', @@ -10,6 +11,7 @@ const meta = { }, tags: ['autodocs'], argTypes: {}, + decorators: [withRouter], } satisfies Meta export default meta diff --git a/src/pages/CreateLocalNodePage/CreateLocalNodePage.stories.ts b/src/pages/CreateLocalNodePage/CreateLocalNodePage.stories.ts index 99c8bae0..8b61dea8 100644 --- a/src/pages/CreateLocalNodePage/CreateLocalNodePage.stories.ts +++ b/src/pages/CreateLocalNodePage/CreateLocalNodePage.stories.ts @@ -1,6 +1,7 @@ import type { Meta, StoryObj } from '@storybook/react' import CreateLocalNodePage from './CreateLocalNodePage' +import { withRouter } from 'storybook-addon-react-router-v6' const meta = { title: 'Pages/CreateLocalNodePage', @@ -10,6 +11,7 @@ const meta = { }, tags: ['autodocs'], argTypes: {}, + decorators: [withRouter], } satisfies Meta export default meta