From 32806ee9156207c6c9c65bf18ab40416f66193a1 Mon Sep 17 00:00:00 2001 From: Tim Glasgow Date: Sun, 24 Jul 2022 15:10:04 -0500 Subject: [PATCH] system reducer --- squarenotsquare/redux/reducers/SystemReducer.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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