From 8182f46e3846e348173e7c703ba6445ee4960073 Mon Sep 17 00:00:00 2001 From: elforjani3 Date: Mon, 25 Jan 2021 16:53:44 +0200 Subject: [PATCH] add A/R shrink sidebar. --- .../FinancialStatements/ARAgingSummary/ARAgingSummary.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/containers/FinancialStatements/ARAgingSummary/ARAgingSummary.js b/client/src/containers/FinancialStatements/ARAgingSummary/ARAgingSummary.js index 194bb575d..1d3537536 100644 --- a/client/src/containers/FinancialStatements/ARAgingSummary/ARAgingSummary.js +++ b/client/src/containers/FinancialStatements/ARAgingSummary/ARAgingSummary.js @@ -31,7 +31,8 @@ function ReceivableAgingSummarySheet({ // #withDashboardActions changePageTitle, setDashboardBackLink, - + setSidebarShrink, + // #withARAgingSummaryActions requestReceivableAgingSummary, refreshARAgingSummary, @@ -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(