mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-16 09:51:59 +03:00
620f45debf
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2768 GitOrigin-RevId: f0250ebd1578fcf91449212bc0dab49de192a742
25 lines
609 B
JavaScript
25 lines
609 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { addDecorator } from '@storybook/react';
|
|
import { initialize, mswDecorator } from 'msw-storybook-addon';
|
|
import '../src/theme/tailwind.css';
|
|
import { store } from '../src/store';
|
|
import '../src/components/Common/Common.scss';
|
|
|
|
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>,
|
|
];
|
|
|
|
initialize();
|
|
addDecorator(mswDecorator);
|