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

@@ -32,6 +32,7 @@ function Journal({
// #withDashboardActions
changePageTitle,
setDashboardBackLink,
setSidebarShrink,
// #withPreferences
organizationName,
@@ -54,6 +55,7 @@ function Journal({
}, [changePageTitle, formatMessage]);
useEffect(() => {
setSidebarShrink();
// Show the back link on dashboard topbar.
setDashboardBackLink(true);
@@ -61,7 +63,7 @@ function Journal({
// Hide the back link on dashboard topbar.
setDashboardBackLink(false);
};
});
}, [setDashboardBackLink, setSidebarShrink]);
useEffect(() => {
if (journalSheetRefresh) {