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

@@ -28,7 +28,8 @@ function ProfitLossSheet({
// #withDashboardActions
changePageTitle,
setDashboardBackLink,
setSidebarShrink,
// #withProfitLoss
profitLossSheetRefresh,
@@ -62,6 +63,7 @@ function ProfitLossSheet({
}, [profitLossSheetRefresh, refreshProfitLossSheet]);
useEffect(() => {
setSidebarShrink()
// Show the back link on dashboard topbar.
setDashboardBackLink(true);
@@ -69,7 +71,7 @@ function ProfitLossSheet({
// Hide the back link on dashboard topbar.
setDashboardBackLink(false);
};
});
},[setDashboardBackLink,setSidebarShrink]);
// Fetches profit/loss sheet.
const fetchSheetHook = useQuery(['profit-loss-sheet', filter],