yapi/client/reducer/interface/interface.js

17 lines
288 B
JavaScript
Raw Normal View History

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