summaryrefslogtreecommitdiff
path: root/frontend/src/reducers.js
blob: a5d4a9fdad04b7d414f8f6c4f26f02f133d1c053 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { combineReducers, routerReducer } from "redux-seamless-immutable";
import { reducer as toastrReducer } from "react-redux-toastr";

import errorsReducer from "./redux/errors";
import gamesReducer from "./redux/games";
import playersReducer from "./redux/players";

export default function createReducer() {
  return combineReducers({
    errors: errorsReducer,
    games: gamesReducer,
    players: playersReducer,
    routing: routerReducer,
    toastr: toastrReducer
  });
}
bgstack15