fix: close btn in invoice delete.

This commit is contained in:
elforjani3
2021-01-08 17:47:46 +02:00
parent 4d939d6120
commit a2a8e22270
2 changed files with 4 additions and 3 deletions

View File

@@ -97,9 +97,10 @@ function InvoiceList({
const handleConfirmInvoiceDelete = useCallback(() => {
requestDeleteInvoice(deleteInvoice.id)
.then(() => {
setDeleteInvoice(false);
AppToaster.show({
message: formatMessage({
id: 'the_invocie_has_been_successfully_deleted',
id: 'the_invoice_has_been_successfully_deleted',
}),
intent: Intent.SUCCESS,
});
@@ -109,7 +110,7 @@ function InvoiceList({
setDeleteInvoice(false);
});
}, [deleteInvoice, requestDeleteInvoice, formatMessage]);
// Handle cancel/confirm invoice deliver.
const handleDeliverInvoice = useCallback((invoice) => {
setDeliverInvoice(invoice);