From 36286eee4ba4edb495b9b66b6fc0ebdcbd3c9dbf Mon Sep 17 00:00:00 2001 From: Hristo Nedelkov Date: Mon, 4 Sep 2023 12:39:52 +0300 Subject: [PATCH] Fix story for validator onboadring --- .../ValidatorOnboarding.stories.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/pages/ValidatorOnboarding/ValidatorOnboarding.stories.ts b/src/pages/ValidatorOnboarding/ValidatorOnboarding.stories.ts index 402211c1..c22304db 100644 --- a/src/pages/ValidatorOnboarding/ValidatorOnboarding.stories.ts +++ b/src/pages/ValidatorOnboarding/ValidatorOnboarding.stories.ts @@ -2,7 +2,16 @@ import type { Meta, StoryObj } from '@storybook/react' import { withRouter } from 'storybook-addon-react-router-v6' import ValidatorOnboarding from './ValidatorOnboarding' +import { Provider as ReduxProvider } from 'react-redux' +import store from '../../redux/store' +const withRedux = (StoryComponent: any) => { + return ( + + + + ); +} const meta = { title: 'Pages/ValidatorOnboarding', component: ValidatorOnboarding, @@ -10,7 +19,7 @@ const meta = { layout: 'centered', }, tags: ['autodocs'], - decorators: [withRouter()], + decorators: [withRouter(), withRedux], } satisfies Meta export default meta