p5.js-web-editor/shared/redux/reducers/user.js

12 lines
No EOL
258 B
JavaScript

import * as ActionTypes from '../constants/constants'
const user = (state = {}, action) => {
switch (action.type) {
case ActionTypes.AUTH_USER:
return { ...state, error: '', authenticated: true };
default:
return state;
}
}
export default user;