user.js
308 Bytes
import {
SET_OPENID
} from '../constants/user'
const INITIAL_STATE = {
openID: ''
}
export default function user (state = INITIAL_STATE, action) {
switch (action.type) {
case SET_OPENID:
return {
...state,
openID: action.openID
}
default:
return state
}
}