mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-20 14:50:32 +00:00
fix receipts view.
This commit is contained in:
@@ -45,9 +45,7 @@ function ReceiptActionsBar({
|
|||||||
|
|
||||||
// Handle the active tab change.
|
// Handle the active tab change.
|
||||||
const handleTabChange = (viewId) => {
|
const handleTabChange = (viewId) => {
|
||||||
setReceiptsTableState({
|
setReceiptsTableState({ customViewId: viewId.id || null });
|
||||||
csutomViewId: viewId.id || null,
|
|
||||||
});
|
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ function ReceiptViewTabs({
|
|||||||
setReceiptsTableState,
|
setReceiptsTableState,
|
||||||
|
|
||||||
// #withReceipts
|
// #withReceipts
|
||||||
receiptTableState
|
receiptTableState,
|
||||||
}) {
|
}) {
|
||||||
// Receipts list context.
|
// Receipts list context.
|
||||||
const { receiptsViews } = useReceiptsListContext();
|
const { receiptsViews } = useReceiptsListContext();
|
||||||
@@ -27,9 +27,9 @@ function ReceiptViewTabs({
|
|||||||
}));
|
}));
|
||||||
|
|
||||||
// Handles the active tab chaning.
|
// Handles the active tab chaning.
|
||||||
const handleTabsChange = (customView) => {
|
const handleTabsChange = (viewId) => {
|
||||||
setReceiptsTableState({
|
setReceiptsTableState({
|
||||||
customViewId: customView.id || null,
|
customViewId: viewId || null,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user