BIG-123: alert delete showing in vendor & customer.

This commit is contained in:
elforjani13
2021-09-25 17:11:08 +02:00
parent 4e99607b06
commit 010b660318
7 changed files with 38 additions and 23 deletions

View File

@@ -61,8 +61,8 @@ function CustomerDetailsActionsBar({
const handleDeleteCustomer = () => {
openAlert(`customer-delete`, { contactId: customerId });
closeDrawer('customer-details-drawer');
};
const handleEditContact = () => {
history.push(`/customers/${customerId}/edit`);
closeDrawer('customer-details-drawer');

View File

@@ -46,7 +46,6 @@ function VendorDetailsActionsBar({
// Handle delete vendor.
const onDeleteContact = () => {
openAlert(`vendor-delete`, { contactId: vendorId });
closeDrawer('vendor-details-drawer');
};
const handleNewInvoiceClick = () => {