diff --git a/squarenotsquare/redux/reducers/SystemReducer.js b/squarenotsquare/redux/reducers/SystemReducer.js index e69de29..81d2858 100644 --- a/squarenotsquare/redux/reducers/SystemReducer.js +++ b/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 +}; \ No newline at end of file