fix: add sidebar shrink.

This commit is contained in:
elforjani3
2021-01-25 16:51:14 +02:00
parent 0655963607
commit 3d080244e6
5 changed files with 16 additions and 6 deletions

View File

@@ -31,6 +31,7 @@ function ReceivableAgingSummarySheet({
// #withDashboardActions
changePageTitle,
setDashboardBackLink,
setSidebarShrink,
// #withARAgingSummaryActions
requestReceivableAgingSummary,
@@ -59,6 +60,7 @@ function ReceivableAgingSummarySheet({
}, [ARAgingSummaryRefresh, refreshARAgingSummary]);
useEffect(() => {
setSidebarShrink()
// Show the back link on dashboard topbar.
setDashboardBackLink(true);
@@ -66,7 +68,7 @@ function ReceivableAgingSummarySheet({
// Hide the back link on dashboard topbar.
setDashboardBackLink(false);
};
}, [setDashboardBackLink]);
}, [setDashboardBackLink,setSidebarShrink]);
// Handle fetching receivable aging summary report.
const fetchARAgingSummarySheet = useQuery(