Created
June 24, 2018 10:10
-
-
Save AndrejGajdos/ee010509a997c9cda2924f5eb95103ce to your computer and use it in GitHub Desktop.
This file is part of project https://github.com/AndrejGajdos/auth-flow-spa-node-react
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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