From c293ae9f31a1ce0c46f487cc81792ce447357723 Mon Sep 17 00:00:00 2001 From: tanmoy12 Date: Fri, 9 Apr 2021 21:10:42 +0600 Subject: [PATCH] added path update --- packages/files-ui/src/Components/Layouts/AppNav.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/files-ui/src/Components/Layouts/AppNav.tsx b/packages/files-ui/src/Components/Layouts/AppNav.tsx index 01631fcf19..8b39c070eb 100644 --- a/packages/files-ui/src/Components/Layouts/AppNav.tsx +++ b/packages/files-ui/src/Components/Layouts/AppNav.tsx @@ -215,7 +215,7 @@ const AppNav: React.FC = ({ navOpen, setNavOpen }: IAppNav) => { const { desktop, setTheme, themeKey } = useThemeSwitcher() const classes = useStyles() - const { spaceUsed } = useDrive() + const { spaceUsed, updateCurrentPath } = useDrive() const { isLoggedIn, secured } = useImployApi() const { publicKey, isNewDevice, shouldInitializeAccount, logout } = useThresholdKey() @@ -231,7 +231,8 @@ const AppNav: React.FC = ({ navOpen, setNavOpen }: IAppNav) => { if (!desktop && navOpen) { setNavOpen(false) } - }, [desktop, navOpen, setNavOpen]) + updateCurrentPath("/", "csf", true) + }, [desktop, navOpen, setNavOpen, updateCurrentPath]) const collectFeedback = () => { window.open("https://forms.gle/FefqZRD3fDVYyarC8", "_blank")