From 79dcc592bc5c77a0529640c60949685a27b167e4 Mon Sep 17 00:00:00 2001 From: Ahmed Bouhuolia Date: Sat, 2 Nov 2024 11:51:10 +0200 Subject: [PATCH] fix: change the send mail button on invoice drawer --- .../Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/webapp/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.tsx b/packages/webapp/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.tsx index c458c262e..f67b06a6a 100644 --- a/packages/webapp/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.tsx +++ b/packages/webapp/src/containers/Drawers/InvoiceDetailDrawer/InvoiceDetailActionsBar.tsx @@ -47,6 +47,7 @@ function InvoiceDetailActionsBar({ openAlert, // #withDrawerActions + openDrawer, closeDrawer, }) { const history = useHistory(); @@ -102,8 +103,9 @@ function InvoiceDetailActionsBar({ openAlert('cancel-bad-debt', { invoiceId }); }; + // handle send mail button click. const handleMailInvoice = () => { - openDialog(DialogsName.InvoiceMail, { invoiceId }); + openDrawer(DRAWERS.INVOICE_SEND_MAIL, { invoiceId }); }; const handleShareButtonClick = () => {