graphql-engine/console/.storybook/preview.js
Matt Hardman 620f45debf Create new storybook components for Table Permissions Form
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/2768
GitOrigin-RevId: f0250ebd1578fcf91449212bc0dab49de192a742
2021-11-16 14:36:48 +00:00

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);