feat: content & item detail.

This commit is contained in:
elforjani3
2021-08-23 19:31:02 +02:00
parent f5fd2aa324
commit 1150cb48da
25 changed files with 535 additions and 36 deletions

View File

@@ -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

View File

@@ -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