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