mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-21 00:40:09 +00:00
fix: add redux provider for validator install story
This commit is contained in:
parent
c92e30018e
commit
b8f5493238
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user