summaryrefslogtreecommitdiff
path: root/frontend/src/redux/games.js
diff options
context:
space:
mode:
authorJoffrey Bion <joffrey.bion@amadeus.com>2017-07-19 15:47:53 +0200
committerJoffrey Bion <joffrey.bion@amadeus.com>2017-07-19 15:47:53 +0200
commitc084113abcc7c16dc889b9c75a427697ea7027bf (patch)
treee845193776f9f547956e1db2ea9cfb3003e555e8 /frontend/src/redux/games.js
parentUpdate redux flow typed files (diff)
downloadseven-wonders-c084113abcc7c16dc889b9c75a427697ea7027bf.tar.gz
seven-wonders-c084113abcc7c16dc889b9c75a427697ea7027bf.tar.bz2
seven-wonders-c084113abcc7c16dc889b9c75a427697ea7027bf.zip
Rename actions in games.js (GAME -> GAMES)
Diffstat (limited to 'frontend/src/redux/games.js')
-rw-r--r--frontend/src/redux/games.js16
1 files changed, 9 insertions, 7 deletions
diff --git a/frontend/src/redux/games.js b/frontend/src/redux/games.js
index 8926e84b..a594ad41 100644
--- a/frontend/src/redux/games.js
+++ b/frontend/src/redux/games.js
@@ -5,15 +5,17 @@ import type { GameMapType, GameNormalMapType, GameShape, Game } from '../models/
import type { Map, List } from 'immutable';
export const types = {
- UPDATE_GAMES: 'GAME/UPDATE_GAMES',
- REQUEST_CREATE_GAME: 'GAME/REQUEST_CREATE_GAME',
- REQUEST_JOIN_GAME: 'GAME/REQUEST_JOIN_GAME',
- REQUEST_START_GAME: 'GAME/REQUEST_JOIN_GAME',
- ENTER_LOBBY: 'GAME/ENTER_LOBBY',
- ENTER_GAME: 'GAME/ENTER_GAME',
+ UPDATE_GAMES: 'GAMES/UPDATE_GAMES',
+ REQUEST_CREATE_GAME: 'GAMES/REQUEST_CREATE_GAME',
+ REQUEST_JOIN_GAME: 'GAMES/REQUEST_JOIN_GAME',
+ REQUEST_START_GAME: 'GAMES/REQUEST_JOIN_GAME',
+ ENTER_LOBBY: 'GAMES/ENTER_LOBBY',
+ ENTER_GAME: 'GAMES/ENTER_GAME',
};
-type Actions = { type: 'GAME/UPDATE_GAMES', games: GameMapType } | { type: 'GAME/REQUEST_CREATE_GAME', gameId: string };
+type Actions =
+ | { type: "GAMES/UPDATE_GAMES", games: GameMapType }
+ | { type: "GAMES/REQUEST_CREATE_GAME", gameId: string };
export const actions = {
updateGames: (games: GameNormalMapType) => ({ type: types.UPDATE_GAMES, games: fromJS(games) }),
bgstack15