diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2019-05-03 01:27:22 +0200 |
---|---|---|
committer | jbion <joffrey.bion@amadeus.com> | 2019-05-06 18:33:14 +0200 |
commit | 0d09d870d9adf789232a5e6165f44c605839833a (patch) | |
tree | 304cabb01f2b3a9b9afd338f784d957a5a55dd48 /frontend/src/reducers.js | |
parent | Convert redux actions to typescript (diff) | |
download | seven-wonders-0d09d870d9adf789232a5e6165f44c605839833a.tar.gz seven-wonders-0d09d870d9adf789232a5e6165f44c605839833a.tar.bz2 seven-wonders-0d09d870d9adf789232a5e6165f44c605839833a.zip |
Convert reducers to typescript
Diffstat (limited to 'frontend/src/reducers.js')
-rw-r--r-- | frontend/src/reducers.js | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/frontend/src/reducers.js b/frontend/src/reducers.js deleted file mode 100644 index 612bd0c5..00000000 --- a/frontend/src/reducers.js +++ /dev/null @@ -1,25 +0,0 @@ -// @flow -import { routerReducer } from 'react-router-redux'; -import { combineReducers } from 'redux'; -import type { ApiPlayer } from './api/model'; -import type { CurrentGameState } from './redux/currentGame'; -import { createCurrentGameReducer } from './redux/currentGame'; -import type { GamesState } from './redux/games'; -import { createGamesReducer } from './redux/games'; -import { currentUserReducer } from './redux/user'; - -export type GlobalState = { - currentGame: CurrentGameState; - currentUser: ApiPlayer; - games: GamesState; - routing: any; -} - -export function createReducer() { - return combineReducers({ - currentGame: createCurrentGameReducer(), - currentUser: currentUserReducer, - games: createGamesReducer(), - routing: routerReducer, - }); -} |