mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
feat: content & item detail.
This commit is contained in:
@@ -20,7 +20,7 @@ function CustomerDeleteAlert({
|
||||
|
||||
// #withAlertStoreConnect
|
||||
isOpen,
|
||||
payload: { customerId },
|
||||
payload: { contactId },
|
||||
|
||||
// #withAlertActions
|
||||
closeAlert,
|
||||
@@ -38,7 +38,7 @@ function CustomerDeleteAlert({
|
||||
|
||||
// handle confirm delete customer.
|
||||
const handleConfirmDeleteCustomer = useCallback(() => {
|
||||
deleteCustomerMutate(customerId)
|
||||
deleteCustomerMutate(contactId)
|
||||
.then(() => {
|
||||
AppToaster.show({
|
||||
message: intl.get('the_customer_has_been_deleted_successfully'),
|
||||
@@ -51,7 +51,7 @@ function CustomerDeleteAlert({
|
||||
.finally(() => {
|
||||
closeAlert(name);
|
||||
});
|
||||
}, [deleteCustomerMutate, customerId, closeAlert, name]);
|
||||
}, [deleteCustomerMutate, contactId, closeAlert, name]);
|
||||
|
||||
return (
|
||||
<Alert
|
||||
|
||||
@@ -20,7 +20,7 @@ function VendorDeleteAlert({
|
||||
|
||||
// #withAlertStoreConnect
|
||||
isOpen,
|
||||
payload: { vendorId },
|
||||
payload: { contactId },
|
||||
|
||||
// #withAlertActions
|
||||
closeAlert,
|
||||
@@ -35,7 +35,7 @@ function VendorDeleteAlert({
|
||||
|
||||
// Handle confirm delete vendor.
|
||||
const handleConfirmDeleteVendor = useCallback(() => {
|
||||
deleteVendorMutate(vendorId)
|
||||
deleteVendorMutate(contactId)
|
||||
.then(() => {
|
||||
AppToaster.show({
|
||||
message: intl.get('the_vendor_has_been_deleted_successfully'),
|
||||
@@ -54,7 +54,7 @@ function VendorDeleteAlert({
|
||||
.finally(() => {
|
||||
closeAlert(name);
|
||||
});
|
||||
}, [deleteVendorMutate, name, closeAlert, vendorId]);
|
||||
}, [deleteVendorMutate, name, closeAlert, contactId]);
|
||||
|
||||
return (
|
||||
<Alert
|
||||
|
||||
Reference in New Issue
Block a user