Created
August 25, 2019 14:20
-
-
Save pfftdammitchris/004c7ef287e1c005aaa17672fbde9afe to your computer and use it in GitHub Desktop.
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
const authReducer = (state, action) => { | |
switch (action.type) { | |
case 'set-authenticated': | |
return { ...state, authenticated: action.authenticated } | |
default: | |
return state | |
} | |
} | |
export default authReducer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment