Skip to content

Instantly share code, notes, and snippets.

@AndrejGajdos
Created June 24, 2018 10:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndrejGajdos/ee010509a997c9cda2924f5eb95103ce to your computer and use it in GitHub Desktop.
Save AndrejGajdos/ee010509a997c9cda2924f5eb95103ce to your computer and use it in GitHub Desktop.
import * as ActionTypes from '../constants/actionTypes';
export default function toggleModal(state = { login: false }, action) {
switch (action.type) {
case ActionTypes.TOGGLE_MODAL_SUCCEEDED:
return { login: action.newState };
default:
return state;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment