summaryrefslogtreecommitdiff
path: root/frontend/src/reducers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/reducers.ts')
-rw-r--r--frontend/src/reducers.ts31
1 files changed, 0 insertions, 31 deletions
diff --git a/frontend/src/reducers.ts b/frontend/src/reducers.ts
deleted file mode 100644
index f885f642..00000000
--- a/frontend/src/reducers.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { routerReducer } from 'react-router-redux';
-import { combineReducers } from 'redux';
-import { ApiPlayer } from './api/model';
-import { CurrentGameState, EMPTY_CURRENT_GAME } from './redux/currentGame';
-import { createCurrentGameReducer } from './redux/currentGame';
-import { EMPTY_GAMES, GamesState } from './redux/games';
-import { createGamesReducer } from './redux/games';
-import { currentUserReducer } from './redux/user';
-
-export type GlobalState = {
- currentGame: CurrentGameState;
- currentUser: ApiPlayer | null;
- games: GamesState;
- routing: any;
-}
-
-export const INITIAL_STATE: GlobalState = {
- currentGame: EMPTY_CURRENT_GAME,
- currentUser: null,
- games: EMPTY_GAMES,
- routing: null,
-};
-
-export function createReducer() {
- return combineReducers({
- currentGame: createCurrentGameReducer(),
- currentUser: currentUserReducer,
- games: createGamesReducer(),
- routing: routerReducer,
- });
-}
bgstack15