clear wrong use of redux

This commit is contained in:
Hristo Nedelkov 2023-09-05 10:23:11 +03:00
parent 010f5fda5b
commit 5a466b3935
1 changed files with 4 additions and 8 deletions

View File

@ -1,7 +1,5 @@
import type { Meta, StoryObj } from '@storybook/react'
import { Provider as ReduxProvider } from 'react-redux'
import store from '../../redux/store'
import DeviceSyncStatus from './DeviceSyncStatus'
const meta = {
@ -13,11 +11,9 @@ const meta = {
tags: ['autodocs'],
decorators: [
Story => (
<ReduxProvider store={store}>
<div style={{ height: '100%', width: '100%' }}>
<Story />
</div>
</ReduxProvider>
<div style={{ height: '100%', width: '100%' }}>
<Story />
</div>
),
],
} satisfies Meta<typeof DeviceSyncStatus>