summaryrefslogtreecommitdiff
path: root/frontend/src/models
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-06-09 16:23:49 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-06-09 17:22:40 +0200
commitb064ffab80cfccd0cfaa326275a5a3194e112be6 (patch)
treee136aeab7da5f52acbf65e1b1f36e41c2b4ab7a0 /frontend/src/models
parentRefresh dependencies (diff)
downloadseven-wonders-b064ffab80cfccd0cfaa326275a5a3194e112be6.tar.gz
seven-wonders-b064ffab80cfccd0cfaa326275a5a3194e112be6.tar.bz2
seven-wonders-b064ffab80cfccd0cfaa326275a5a3194e112be6.zip
Improve game list's style
Diffstat (limited to 'frontend/src/models')
-rw-r--r--frontend/src/models/games.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontend/src/models/games.js b/frontend/src/models/games.js
index 6420e06d..dfa0591d 100644
--- a/frontend/src/models/games.js
+++ b/frontend/src/models/games.js
@@ -34,12 +34,13 @@ const SettingsRecord: SettingsType = Record({
});
export class Settings extends SettingsRecord {}
+export type GameState = 'LOBBY' | 'PLAYING';
export type GameShape = {
id: number,
name: string | void,
players: List<string>,
settings: SettingsType,
- state: "LOBBY" | "TODO"
+ state: GameState,
};
export type GameType = Record<GameShape>;
export type GameMapType = Map<string, GameShape>;
bgstack15