Skip to content

Commit

Permalink
Added deleteCustomer action
Browse files Browse the repository at this point in the history
  • Loading branch information
CesarRivasP committed Feb 10, 2019
1 parent f3550bf commit 5ff6f87
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/actions/delete-customer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@

import { createAction } from 'redux-actions';
import { apiDelete } from '../api';
import { urlCustomers } from '../api/urls';
import { DELETE_CUSTOMER } from '../constants';


export const deleteCustomer = createAction(
DELETE_CUSTOMER,
(id) => apiDelete(urlCustomers, id)()
);

0 comments on commit 5ff6f87

Please sign in to comment.