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

@@ -27,6 +27,7 @@ function TrialBalanceSheet({
// #withDashboardActions
changePageTitle,
setDashboardBackLink,
setSidebarShrink,
// #withTrialBalance
trialBalanceSheetRefresh,
@@ -62,6 +63,7 @@ function TrialBalanceSheet({
}, [changePageTitle, formatMessage]);
useEffect(() => {
setSidebarShrink();
// Show the back link on dashboard topbar.
setDashboardBackLink(true);
@@ -69,7 +71,7 @@ function TrialBalanceSheet({
// Hide the back link on dashboard topbar.
setDashboardBackLink(false);
};
});
}, [setDashboardBackLink, setSidebarShrink]);
const handleFilterSubmit = useCallback(
(filter) => {