refactoring(invoice drawer): invoice drawer.

This commit is contained in:
elforjani3
2021-03-06 20:29:32 +02:00
parent fe5fc80ecb
commit 252f3b4617
6 changed files with 109 additions and 21 deletions

View File

@@ -33,7 +33,7 @@ function InvoicesDataTable({
// #withAlertsActions
openAlert,
// #withDrawerActions
openDrawer,
}) {
@@ -67,8 +67,8 @@ function InvoicesDataTable({
};
// Handle drawer invoice.
const handleDrawerInvoice = () => {
openDrawer('invoice-drawer', {});
const handleDrawerInvoice = ({ id }) => {
openDrawer('invoice-drawer', { invoiceId: id });
};
// Handles fetch data once the table state change.