Merge pull request #730 from bigcapitalhq/change-send-mail-button-invoice

fix: change the send mail button on invoice drawer
This commit is contained in:
Ahmed Bouhuolia
2024-11-02 11:51:34 +02:00
committed by GitHub

View File

@@ -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 = () => {