accounts-frontend/.storybook/storyDecorator.tsx

15 lines
353 B
TypeScript

import React from 'react';
import { ContextProvider } from 'app/shell';
import { browserHistory } from 'app/services/history';
import storeFactory from 'app/storeFactory';
const store = storeFactory();
import 'app/index.scss';
export default story => (
<ContextProvider store={store} history={browserHistory}>
{story()}
</ContextProvider>
);