diff options
Diffstat (limited to 'ui/responsive/app/store.js')
-rw-r--r-- | ui/responsive/app/store.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/ui/responsive/app/store.js b/ui/responsive/app/store.js deleted file mode 100644 index ba9e58b49..000000000 --- a/ui/responsive/app/store.js +++ /dev/null @@ -1,21 +0,0 @@ -const createStore = require('redux').createStore -const applyMiddleware = require('redux').applyMiddleware -const thunkMiddleware = require('redux-thunk') -const rootReducer = require('./reducers') -const createLogger = require('redux-logger') - -global.METAMASK_DEBUG = 'GULP_METAMASK_DEBUG' - -module.exports = configureStore - -const loggerMiddleware = createLogger({ - predicate: () => global.METAMASK_DEBUG, -}) - -const middlewares = [thunkMiddleware, loggerMiddleware] - -const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore) - -function configureStore (initialState) { - return createStoreWithMiddleware(rootReducer, initialState) -} |