mirror of
https://github.com/status-im/status-web.git
synced 2025-01-11 05:06:54 +00:00
e586de1890
* upgrade deps * update storybook configs * add required tamagui token :/
36 lines
643 B
TypeScript
36 lines
643 B
TypeScript
import React from 'react'
|
|
import type { Preview } from '@storybook/react'
|
|
|
|
import { Provider, ToastContainer } from '../src'
|
|
|
|
import './reset.css'
|
|
import './components.css'
|
|
|
|
// export const parameters: Parameters = {
|
|
// actions: { argTypesRegex: '^on[A-Z].*' },
|
|
// controls: {
|
|
// matchers: {
|
|
// color: /(background|color)$/i,
|
|
// date: /Date$/,
|
|
// },
|
|
// },
|
|
// }
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
// layout: 'centered',
|
|
},
|
|
decorators: [
|
|
Story => {
|
|
return (
|
|
<Provider>
|
|
<Story />
|
|
<ToastContainer />
|
|
</Provider>
|
|
)
|
|
},
|
|
],
|
|
}
|
|
|
|
export default preview
|