From 6d9b914f7d71cf92cdcf140ecfcd691347bb4a8d Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Mon, 25 Nov 2024 15:59:12 -0700 Subject: [PATCH] feat: [pipe-23626]: fix logout Signed-off-by: Calvin Lee --- apps/gitness/src/components/RootWrapper.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/gitness/src/components/RootWrapper.tsx b/apps/gitness/src/components/RootWrapper.tsx index 528eeb553..bc42fd816 100644 --- a/apps/gitness/src/components/RootWrapper.tsx +++ b/apps/gitness/src/components/RootWrapper.tsx @@ -1,3 +1,5 @@ +import { useNavigate } from 'react-router-dom' + import { SandboxRoot } from '@harnessio/ui/views' import { useAppContext } from '../framework/context/AppContext' @@ -10,10 +12,11 @@ const RootWrapper = () => { // spaces } = useAppContext() // const spaceId = useGetSpaceURLParam() - + const navigate = useNavigate() return ( <> navigate('/logout')} currentUser={currentUser} pinnedMenu={null} recentMenu={[]}