From 8d0bc1af345ba3a5d445d14e41074f2cfba06956 Mon Sep 17 00:00:00 2001 From: RadoslavDimchev Date: Tue, 9 Apr 2024 23:58:57 +0300 Subject: [PATCH] fix(management-table-story): add router decorator --- .../ManagementTable/ManagementTable.stories.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/ValidatorManagement/ManagementTable/ManagementTable.stories.tsx b/src/pages/ValidatorManagement/ManagementTable/ManagementTable.stories.tsx index 344ad98a..9ab3ea40 100644 --- a/src/pages/ValidatorManagement/ManagementTable/ManagementTable.stories.tsx +++ b/src/pages/ValidatorManagement/ManagementTable/ManagementTable.stories.tsx @@ -1,4 +1,5 @@ import type { Meta, StoryObj } from '@storybook/react' +import { withRouter } from 'storybook-addon-react-router-v6' import ManagementTable from './ManagementTable' import { VALIDATORS_DATA } from '../../../constants' @@ -9,6 +10,7 @@ const meta = { parameters: { layout: 'centered', }, + decorators: [withRouter()], tags: ['autodocs'], } satisfies Meta