add A/R shrink sidebar.

This commit is contained in:
elforjani3
2021-01-25 16:53:44 +02:00
parent 201d789cb8
commit 8182f46e38

View File

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