yapi/client/reducer/interface/interface.js

17 lines
299 B
JavaScript
Raw Normal View History

2017-07-11 19:12:13 +08:00
import {
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,
icons: action.payload.data,
};
}
default:
return state;
}
}