yapi/client/reducer/interface/interface.js

17 lines
297 B
JavaScript
Raw Normal View History

2017-07-11 19:12:13 +08:00
import {
2017-07-12 14:18:17 +08:00
FETCH_INTERFACE_DATA
2017-07-12 11:48:11 +08:00
} from '../../constants/action-types.js'
2017-07-11 19:12:13 +08:00
export default (state = 3333, action) => {
switch (action.type) {
case FETCH_INTERFACE_DATA: {
return {
...state,
2017-07-12 14:18:17 +08:00
icons: action.payload.data
2017-07-11 19:12:13 +08:00
};
}
default:
return state;
}
}