2016-09-13 18:05:20 +02:00
|
|
|
import { combineReducers } from 'redux';
|
2020-07-09 19:08:18 +03:00
|
|
|
import { connectRouter } from 'connected-react-router';
|
2016-10-17 12:35:31 +02:00
|
|
|
import { reducer as notifReducer } from 'redux-notifications';
|
2019-03-18 12:47:58 -07:00
|
|
|
import reducers from './index';
|
2016-09-13 18:05:20 +02:00
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function createRootReducer(history) {
|
2020-10-21 20:30:55 +02:00
|
|
|
return combineReducers({
|
|
|
|
...reducers,
|
|
|
|
notifs: notifReducer,
|
|
|
|
router: connectRouter(history),
|
|
|
|
});
|
2021-02-08 20:01:21 +02:00
|
|
|
}
|
2020-07-09 19:08:18 +03:00
|
|
|
|
|
|
|
export default createRootReducer;
|