You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
416 B

import * as NewGameActions from '../../actions/welcome/new-game.actions';
const initial = { hidden: false };
const reducer = (state = initial, action) => {
if (action.type !== NewGameActions.NEWGAME_ACTION) {
return state;
}
if (action.action === NewGameActions.BLINK) {
return (state.hidden ? { hidden: false } : { hidden: true });
}
return state;
};
export default reducer;