summaryrefslogtreecommitdiff
path: root/frontend/src/redux/user.js
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2019-05-03 00:43:11 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2019-05-03 00:43:11 +0200
commitd7f9f2470b972fbdc5b9b0aec2f939f1799968c8 (patch)
treeca3eaf2c90769d1a71c52d24a2fab9e568f18ee6 /frontend/src/redux/user.js
parentConvert api package to typescript (diff)
downloadseven-wonders-d7f9f2470b972fbdc5b9b0aec2f939f1799968c8.tar.gz
seven-wonders-d7f9f2470b972fbdc5b9b0aec2f939f1799968c8.tar.bz2
seven-wonders-d7f9f2470b972fbdc5b9b0aec2f939f1799968c8.zip
Convert redux actions to typescript
Diffstat (limited to 'frontend/src/redux/user.js')
-rw-r--r--frontend/src/redux/user.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/src/redux/user.js b/frontend/src/redux/user.js
index f2247b38..0876d4c2 100644
--- a/frontend/src/redux/user.js
+++ b/frontend/src/redux/user.js
@@ -1,7 +1,7 @@
import { ApiPlayer } from '../api/model';
import type { GlobalState } from '../reducers';
import type { Action } from './actions/all';
-import { types } from './actions/user';
+import { SET_CURRENT_PLAYER } from './actions/user';
import { getCurrentGame } from './games';
export type User = {
@@ -11,7 +11,7 @@ export type User = {
export const currentUserReducer = (state: ?User = null, action: Action) => {
switch (action.type) {
- case types.SET_CURRENT_PLAYER:
+ case SET_CURRENT_PLAYER:
return {
username: action.player.username,
displayName: action.player.displayName
bgstack15