summaryrefslogtreecommitdiff
path: root/frontend/src/reducers.js
blob: 076d269e4ff451f583cd477929be18146764fcad (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 default function createReducer() {
  return combineReducers({
    games: gamesReducer,
    players: playersReducer,
    routing: routerReducer,
    toastr: toastrReducer,
  });
}
bgstack15