Tim Glasgow
2 years ago
1 changed files with 14 additions and 0 deletions
@ -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…
Reference in new issue