mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 09:22:43 +03:00
a34f8d86cb
https://github.com/hasura/graphql-engine-mono/pull/2154 Co-authored-by: Matt Hardman <28978422+mattshardman@users.noreply.github.com> GitOrigin-RevId: e3caefdd0eaa904ed2167248cc166cdb38e7722e
24 lines
574 B
JavaScript
24 lines
574 B
JavaScript
import React from 'react';
|
|
import { Provider } from 'react-redux';
|
|
import { addDecorator } from '@storybook/react';
|
|
import { initializeWorker, mswDecorator } from 'msw-storybook-addon';
|
|
import '../src/theme/tailwind.css';
|
|
import { store } from '../src/store';
|
|
|
|
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>,
|
|
];
|
|
|
|
initializeWorker();
|
|
addDecorator(mswDecorator);
|