parent
3194cb8728
commit
8e1e1680e3
3 changed files with 19 additions and 20 deletions
@ -1,16 +1,16 @@ |
|||||||
require('immutable'); |
require('immutable'); |
||||||
import * as NewGameActions from '../../actions/welcome/new-game.actions'; |
import * as NewGameActions from '../../actions/welcome/new-game.actions'; |
||||||
|
|
||||||
const reducer = (state = false, action) => { |
const reducer = (state = { hidden: false }, action) => { |
||||||
// if (action.type !== NewGameActions.NEWGAME_ACTION) {
|
if (action.type !== NewGameActions.NEWGAME_ACTION) { |
||||||
// return state;
|
return state; |
||||||
// }
|
} |
||||||
//
|
|
||||||
// if (action.action === NewGameActions.BLINK) {
|
|
||||||
// return (state ? false : true);
|
|
||||||
// }
|
|
||||||
|
|
||||||
return false; |
if (action.action === NewGameActions.BLINK) { |
||||||
|
return (state.hidden ? { hidden: false } : { hidden: true }); |
||||||
|
} |
||||||
|
|
||||||
|
return state; |
||||||
}; |
}; |
||||||
|
|
||||||
export default reducer; |
export default reducer; |
||||||
|
Loading…
Reference in new issue