fix: add redux provider for validator install story

This commit is contained in:
RadoslavDimchev 2023-09-01 10:05:42 +03:00
parent c92e30018e
commit b8f5493238

View File

@ -1,6 +1,8 @@
import type { Meta, StoryObj } from '@storybook/react' import type { Meta, StoryObj } from '@storybook/react'
import { Provider as ReduxProvider } from 'react-redux'
import ValidatorSetupInstall from './ValidatorInstall' import ValidatorSetupInstall from './ValidatorInstall'
import store from '../../../redux/store'
const meta = { const meta = {
title: 'ValidatorOnboarding/ValidatorSetupInstall', title: 'ValidatorOnboarding/ValidatorSetupInstall',
@ -9,6 +11,13 @@ const meta = {
layout: 'centered', layout: 'centered',
}, },
tags: ['autodocs'], tags: ['autodocs'],
decorators: [
StoryObj => (
<ReduxProvider store={store}>
<StoryObj />
</ReduxProvider>
),
],
} satisfies Meta<typeof ValidatorSetupInstall> } satisfies Meta<typeof ValidatorSetupInstall>
export default meta export default meta