Fix ginormous problem with storybook and redux
This commit is contained in:
parent
6229830e70
commit
660f388c6b
|
@ -4,6 +4,8 @@ import { TamaguiProvider } from '@tamagui/web'
|
||||||
import { Provider as StatusProvider } from '@status-im/components'
|
import { Provider as StatusProvider } from '@status-im/components'
|
||||||
import '../src/index.css'
|
import '../src/index.css'
|
||||||
import appConfig from '../tamagui.config'
|
import appConfig from '../tamagui.config'
|
||||||
|
import { Provider as ReduxProvider } from 'react-redux'
|
||||||
|
import store from '../src/redux/store'
|
||||||
|
|
||||||
const preview: Preview = {
|
const preview: Preview = {
|
||||||
parameters: {
|
parameters: {
|
||||||
|
@ -14,7 +16,9 @@ const preview: Preview = {
|
||||||
return (
|
return (
|
||||||
<TamaguiProvider config={appConfig}>
|
<TamaguiProvider config={appConfig}>
|
||||||
<StatusProvider>
|
<StatusProvider>
|
||||||
<Story />
|
<ReduxProvider store={store}>
|
||||||
|
<Story />
|
||||||
|
</ReduxProvider>
|
||||||
</StatusProvider>
|
</StatusProvider>
|
||||||
</TamaguiProvider>
|
</TamaguiProvider>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue