add and implement action to send "delete fees" request
This commit is contained in:
@@ -88,6 +88,17 @@ export const fetchIncidents = (dispatch, dateRange) => {
|
||||
});
|
||||
};
|
||||
|
||||
export const deleteIncidents = (dispatch, deleteData) => {
|
||||
dispatch({type: FETCH_INCIDENTS_PENDING});
|
||||
API.delete(`/integration/fees`, { data: deleteData })
|
||||
.then(response => {
|
||||
dispatch({type: FETCH_INCIDENTS_SUCCESS, payload: response.data});
|
||||
})
|
||||
.catch(error => {
|
||||
dispatch({type: FETCH_INCIDENTS_FAILED, payload: error.response});
|
||||
});
|
||||
};
|
||||
|
||||
export const fetchMembersList = (dispatch) => {
|
||||
dispatch({type: FETCH_MEMBERS_PENDING});
|
||||
API.get('officeRnD/membersList')
|
||||
|
||||
Reference in New Issue
Block a user