Browse Source

user reducer

pull/8/head
Tim Glasgow 2 years ago
parent
commit
c636951f67
  1. 19
      squarenotsquare/src/redux/reducers/UserReducer.js

19
squarenotsquare/src/redux/reducers/UserReducer.js

@ -0,0 +1,19 @@
import { APP_INIT } from "../types/SystemTypes";
import {
SQUARE_START,
SQUARE_FINISHED
} from '../types/UserTypes';
function usr(state = {}, action) {
switch (action.type) {
case SQUARE_START:
case SQUARE_FINISHED:
return {...state, ...action.user};
default:
return state;
}
}
export const userReducer = {
user: usr
};
Loading…
Cancel
Save