From 1e3e81651e55a12839e0fdc621df8c1c47562ec0 Mon Sep 17 00:00:00 2001 From: lutangar Date: Thu, 15 Oct 2020 10:31:12 +0200 Subject: [PATCH] fix(storybook): Quickfix profile story --- .../App/Pages/Profiles/Profile/Profile.stories.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) 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', () => (