Skip to content

Commit

Permalink
fix: change the send mail button on invoice drawer
Browse files Browse the repository at this point in the history
  • Loading branch information
abouolia committed Nov 2, 2024
1 parent 6871118 commit 79dcc59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function InvoiceDetailActionsBar({
openAlert,

// #withDrawerActions
openDrawer,
closeDrawer,
}) {
const history = useHistory();
Expand Down Expand Up @@ -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 = () => {
Expand Down

0 comments on commit 79dcc59

Please sign in to comment.