Browse Source

system reducer

pull/1/head
Tim Glasgow 2 years ago
parent
commit
32806ee915
  1. 14
      squarenotsquare/redux/reducers/SystemReducer.js

14
squarenotsquare/redux/reducers/SystemReducer.js

@ -0,0 +1,14 @@
import { APP_INIT } from "../types/SystemTypes";
function sys(state = {}, action) {
switch (action.type) {
case APP_INIT:
return {...state, ...action.system};
default:
return state;
}
}
export const systemReducer = {
system: sys
};
Loading…
Cancel
Save