nimbus-gui/.storybook/preview.tsx

26 lines
657 B
TypeScript
Raw Normal View History

import React from 'react'
import type { Preview } from '@storybook/react'
import { TamaguiProvider } from '@tamagui/web'
import { Provider as StatusProvider } from '@status-im/components'
import { Provider as ReduxProvider } from 'react-redux'
2023-09-05 07:31:17 +00:00
import appConfig from '../tamagui.config'
import store from '../src/redux/store'
2023-09-05 07:31:17 +00:00
import '../src/index.css'
const preview: Preview = {
decorators: [
2023-09-05 07:31:17 +00:00
Story => (
<TamaguiProvider config={appConfig}>
<StatusProvider>
<ReduxProvider store={store}>
<Story />
</ReduxProvider>
</StatusProvider>
</TamaguiProvider>
),
],
}
export default preview