mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
refactoring(invoice drawer): invoice drawer.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user