diff --git a/src/app/profiles/App/Pages/Profiles/Profile/Profile.stories.tsx b/src/app/profiles/App/Pages/Profiles/Profile/Profile.stories.tsx index a51ef2659..7a7177b46 100644 --- a/src/app/profiles/App/Pages/Profiles/Profile/Profile.stories.tsx +++ b/src/app/profiles/App/Pages/Profiles/Profile/Profile.stories.tsx @@ -1,13 +1,23 @@ import React from 'react'; +import { Provider } from 'react-redux'; +import { createStore } from 'redux'; import { storiesOf } from '@storybook/react'; +import { MemoryRouter as Router } from 'react-router-dom'; import { action } from '@storybook/addon-actions'; +import { createBrowserHistory } from 'history'; import Profile from './Profile'; import { generateStatefulNotice } from 'test/fakers/generateNotice'; import { generateStatefulContributor } from 'test/fakers/generateContributor'; -import { MemoryRouter as Router } from 'react-router-dom'; +import rootReducer from '../../../../store/reducers'; + +const store = createStore(rootReducer(createBrowserHistory())); storiesOf('Profile/Profile', module) - .addDecorator(getStory => {getStory()}) + .addDecorator(getStory => ( + + {getStory()} + + )) .add('Normal', () => (