accounts-frontend/.storybook/storyDecorator.js
2019-12-09 09:47:51 +02:00

13 lines
327 B
JavaScript

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