From 91cda02341e238673af22d8a478096552c7bb4f8 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Wed, 20 Mar 2024 19:15:35 +0200 Subject: [PATCH] fix(device-health-check-story): add router decorator --- src/pages/DeviceHealthCheck/DeviceHealthCheck.stories.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/DeviceHealthCheck/DeviceHealthCheck.stories.tsx b/src/pages/DeviceHealthCheck/DeviceHealthCheck.stories.tsx index 46841e19..fe86f4e3 100644 --- a/src/pages/DeviceHealthCheck/DeviceHealthCheck.stories.tsx +++ b/src/pages/DeviceHealthCheck/DeviceHealthCheck.stories.tsx @@ -1,11 +1,12 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import DeviceHealthCheck from './DeviceHealthCheck' const meta: Meta = { title: 'Pages/DeviceHealthCheck', component: DeviceHealthCheck, - decorators: [], + decorators: [withRouter()], tags: ['autodocs'], }