mirror of
https://dev.azure.com/tstanciu94/ReverseProxy/_git/ReverseProxy_Frontend
synced 2022-12-28 18:12:07 +02:00
21 lines
477 B
JavaScript
21 lines
477 B
JavaScript
import * as types from "./actionTypes";
|
|
import initialState from "../../redux/reducers/initialState";
|
|
|
|
export default function systemReducer(state = initialState.system, action) {
|
|
switch (action.type) {
|
|
case types.LOAD_SYSTEM_DATETIME_SUCCESS:
|
|
return {
|
|
...state,
|
|
datetime: action.payload
|
|
};
|
|
|
|
case types.LOAD_SYSTEM_VERSION_SUCCESS:
|
|
return {
|
|
...state,
|
|
...action.payload
|
|
};
|
|
default:
|
|
return state;
|
|
}
|
|
}
|