mirror of
https://github.com/alice-lg/alice-lg.git
synced 2024-05-11 05:55:03 +00:00
22 lines
370 B
React
22 lines
370 B
React
|
import {LOAD_CONFIG_SUCCESS} from './actions'
|
||
|
|
||
|
const initialState = {
|
||
|
routes_columns: {
|
||
|
Gateway: "gateway",
|
||
|
Interface: "interface",
|
||
|
Metric: "metric",
|
||
|
}
|
||
|
};
|
||
|
|
||
|
|
||
|
export default function reducer(state = initialState, action) {
|
||
|
switch(action.type) {
|
||
|
case LOAD_CONFIG_SUCCESS:
|
||
|
return {routes_columns: action.routes_columns};
|
||
|
}
|
||
|
return state;
|
||
|
}
|
||
|
|
||
|
|
||
|
|