New: Replace 'react-router-redux' with 'connected-react-router'

This commit is contained in:
Qstick 2019-03-01 22:27:55 -05:00
parent df65b5b290
commit f43c1e749f
12 changed files with 59 additions and 48 deletions

View file

@ -1,20 +0,0 @@
import { combineReducers } from 'redux';
import { enableBatching } from 'redux-batched-actions';
import { routerReducer } from 'react-router-redux';
import actions from 'Store/Actions';
const defaultState = {};
const reducers = {
routing: routerReducer
};
actions.forEach((action) => {
const section = action.section;
defaultState[section] = action.defaultState;
reducers[section] = action.reducers;
});
export { defaultState };
export default enableBatching(combineReducers(reducers));