2021-09-20 19:30:19 +03:00
|
|
|
import React from 'react';
|
|
|
|
import { Provider } from 'react-redux';
|
|
|
|
import { addDecorator } from '@storybook/react';
|
2021-11-16 17:35:41 +03:00
|
|
|
import { initialize, mswDecorator } from 'msw-storybook-addon';
|
2021-09-20 19:30:19 +03:00
|
|
|
import '../src/theme/tailwind.css';
|
|
|
|
import { store } from '../src/store';
|
2021-10-07 12:50:04 +03:00
|
|
|
import '../src/components/Common/Common.scss';
|
2021-09-20 19:30:19 +03:00
|
|
|
|
|
|
|
export const parameters = {
|
|
|
|
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
|
|
controls: {
|
|
|
|
matchers: {
|
|
|
|
color: /(background|color)$/i,
|
|
|
|
date: /Date$/,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
export const decorators = [
|
|
|
|
(fn, c) => <Provider store={store}>{fn(c)}</Provider>,
|
|
|
|
];
|
|
|
|
|
2021-11-16 17:35:41 +03:00
|
|
|
initialize();
|
2021-09-20 19:30:19 +03:00
|
|
|
addDecorator(mswDecorator);
|