|
@ -4,7 +4,12 @@ import { |
|
|
SQUARE_FINISHED |
|
|
SQUARE_FINISHED |
|
|
} from '../types/UserTypes'; |
|
|
} from '../types/UserTypes'; |
|
|
|
|
|
|
|
|
function usr(state = {}, action) { |
|
|
const initialUserState = { |
|
|
|
|
|
lastGameTime: null, |
|
|
|
|
|
lastGameScore: null |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
function usr(state = initialUserState, action) { |
|
|
switch (action.type) { |
|
|
switch (action.type) { |
|
|
case SQUARE_START: |
|
|
case SQUARE_START: |
|
|
case SQUARE_FINISHED: |
|
|
case SQUARE_FINISHED: |
|
|