mirror of
https://github.com/strapi/strapi.git
synced 2025-09-17 04:17:21 +00:00
25 lines
537 B
JavaScript
25 lines
537 B
JavaScript
import { ThemeProvider, lightTheme } from '@strapi/parts';
|
|
import { IntlProvider } from 'react-intl';
|
|
|
|
export const parameters = {
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
};
|
|
|
|
export const decorators = [
|
|
Story => (
|
|
<ThemeProvider theme={lightTheme}>
|
|
<IntlProvider messages={{ en: {} }} textComponent="span" locale="en">
|
|
<main>
|
|
<Story />
|
|
</main>
|
|
</IntlProvider>
|
|
</ThemeProvider>
|
|
),
|
|
];
|