Created
December 25, 2016 16:31
-
-
Save codeaholicguy/d880be5b18dc2741ed8ddafe125fb4f0 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
import {ActionTypes} from '../core/constants'; | |
const initialState = {}; | |
export default function(state = initialState, {type, user}) { | |
switch (type) { | |
case ActionTypes.ME_SET: | |
return {...state, user}; | |
} | |
return state; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment