aboutsummaryrefslogtreecommitdiff
path: root/src/reducers/root.reducer.js
blob: c5796eacf271e18f4ccf2793c521fd96e29d4511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { combineReducers } from "redux";
import { connectRouter } from "connected-react-router";
import LoadingReducer from "./loading.reducer";
import ErrorReducer from "./error.reducer";
import { LoginReducer } from "./login.reducer";

const createRootReducer = history =>
    combineReducers({
        router: connectRouter(history),
        loading: LoadingReducer,
        error: ErrorReducer,
        login: LoginReducer
    });

export default createRootReducer;