summaryrefslogtreecommitdiff
path: root/frontend/src/schemas/games.js
diff options
context:
space:
mode:
authorVictor Chabbert <chabbertvi@eisti.eu>2017-05-20 15:14:13 +0200
committerVictor Chabbert <chabbertvi@eisti.eu>2017-05-20 15:14:13 +0200
commit240246ea132cc736c6eaa70ed79f2ec78d1d4636 (patch)
treea45a5c81de9f650fcd18190d90049f67c0f63b97 /frontend/src/schemas/games.js
parentUpgrade react-scripts to 1.0.1 (diff)
downloadseven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.gz
seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.tar.bz2
seven-wonders-240246ea132cc736c6eaa70ed79f2ec78d1d4636.zip
Add prettier and format js files
Diffstat (limited to 'frontend/src/schemas/games.js')
-rw-r--r--frontend/src/schemas/games.js20
1 files changed, 12 insertions, 8 deletions
diff --git a/frontend/src/schemas/games.js b/frontend/src/schemas/games.js
index f7a9ffb8..9c9681da 100644
--- a/frontend/src/schemas/games.js
+++ b/frontend/src/schemas/games.js
@@ -1,11 +1,15 @@
-import { schema } from 'normalizr'
+import { schema } from "normalizr";
-const player = new schema.Entity('players', {}, {
- idAttribute: 'username'
-})
+const player = new schema.Entity(
+ "players",
+ {},
+ {
+ idAttribute: "username"
+ }
+);
-export const game = new schema.Entity('games', {
- players: [ player ]
-})
+export const game = new schema.Entity("games", {
+ players: [player]
+});
-export const gameList = [ game ]
+export const gameList = [game];
bgstack15