From 44e57f64dd8b00900c31d7fd56fda94f4e69e986 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Thu, 25 Aug 2016 19:52:55 +0200 Subject: Improving statuses, adding a composer drawer, which doesn't work yet --- app/assets/javascripts/components/store/configureStore.jsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'app/assets/javascripts/components/store') diff --git a/app/assets/javascripts/components/store/configureStore.jsx b/app/assets/javascripts/components/store/configureStore.jsx index bb5d664d0..9ff28bb42 100644 --- a/app/assets/javascripts/components/store/configureStore.jsx +++ b/app/assets/javascripts/components/store/configureStore.jsx @@ -1,6 +1,7 @@ -import { createStore } from 'redux'; +import { createStore, applyMiddleware } from 'redux'; +import thunk from 'redux-thunk'; import appReducer from '../reducers'; -export default function configureStore(initialState) { - return createStore(appReducer, initialState); +export default function configureStore() { + return createStore(appReducer, applyMiddleware(thunk)); } -- cgit