mirror of
https://github.com/status-im/status-web.git
synced 2025-01-09 20:26:02 +00:00
24 lines
551 B
TypeScript
24 lines
551 B
TypeScript
import React from 'react'
|
|
import { TamaguiProvider } from '@tamagui/core'
|
|
import { config } from '../src'
|
|
import { Parameters, Decorator } from '@storybook/react'
|
|
|
|
export const parameters: Parameters = {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
}
|
|
|
|
const withThemeProvider: Decorator = (Story, _context) => {
|
|
return (
|
|
<TamaguiProvider config={config}>
|
|
<Story />
|
|
</TamaguiProvider>
|
|
)
|
|
}
|
|
export const decorators = [withThemeProvider]
|