summaryrefslogtreecommitdiff
path: root/frontend/src/redux
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2018-04-29 21:10:55 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2018-04-29 21:51:10 +0200
commit73ede6097d5fcd871522a87d02a0c5bc9db00464 (patch)
tree67cf69bcdd3556f73aaa419ac9a367a6fcb0b000 /frontend/src/redux
parentCleanup index.js files (diff)
downloadseven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.gz
seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.tar.bz2
seven-wonders-73ede6097d5fcd871522a87d02a0c5bc9db00464.zip
Remove default exports everywhere
Diffstat (limited to 'frontend/src/redux')
-rw-r--r--frontend/src/redux/games.js4
-rw-r--r--frontend/src/redux/players.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/frontend/src/redux/games.js b/frontend/src/redux/games.js
index e89bb842..22b0d6bc 100644
--- a/frontend/src/redux/games.js
+++ b/frontend/src/redux/games.js
@@ -2,7 +2,7 @@
import type { List, Map } from 'immutable';
import { fromJS } from 'immutable';
import type { Game, GameMapType, GameNormalMapType, GameShape } from '../models/games';
-import GamesState from '../models/games';
+import { GamesState } from '../models/games';
export const types = {
UPDATE_GAMES: 'GAMES/UPDATE_GAMES',
@@ -29,7 +29,7 @@ export const actions = {
enterGame: () => ({ type: types.ENTER_GAME }),
};
-export default (state: GamesState = new GamesState(), action: Actions) => {
+export const gamesReducer = (state: GamesState = new GamesState(), action: Actions) => {
switch (action.type) {
case types.UPDATE_GAMES:
return state.addGames(action.games);
diff --git a/frontend/src/redux/players.js b/frontend/src/redux/players.js
index 85b579f3..de68ae13 100644
--- a/frontend/src/redux/players.js
+++ b/frontend/src/redux/players.js
@@ -1,4 +1,4 @@
-import PlayerState, { Player } from '../models/players';
+import { Player, PlayerState } from '../models/players';
export const types = {
REQUEST_CHOOSE_USERNAME: 'USER/REQUEST_CHOOSE_USERNAME',
@@ -21,7 +21,7 @@ export const actions = {
}),
};
-export default (state = new PlayerState(), action) => {
+export const playersReducer = (state = new PlayerState(), action) => {
switch (action.type) {
case types.SET_CURRENT_PLAYER:
return state.addPlayer(action.player);
bgstack15