summaryrefslogtreecommitdiff
path: root/frontend/src/reducers.js
blob: 97c5259e7d5edaaa8a89c26e712997fe7413939e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// @flow
import { reducer as toastrReducer } from 'react-redux-toastr';
import { routerReducer } from 'react-router-redux';
import { combineReducers } from 'redux-immutable';
import { gamesReducer } from './redux/games';
import { playersReducer } from './redux/players';

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