accounts-frontend/.storybook/storyDecorator.js

13 lines
327 B
JavaScript
Raw Normal View History

2019-12-09 13:17:51 +05:30
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>
);