Skip to content

Commit

Permalink
feat: [pipe-23626]: fix logout
Browse files Browse the repository at this point in the history
Signed-off-by: Calvin Lee <[email protected]>
  • Loading branch information
cjlee1 committed Nov 25, 2024
1 parent 59c75c4 commit 6d9b914
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/gitness/src/components/RootWrapper.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { useNavigate } from 'react-router-dom'

import { SandboxRoot } from '@harnessio/ui/views'

import { useAppContext } from '../framework/context/AppContext'
Expand All @@ -10,10 +12,11 @@ const RootWrapper = () => {
// spaces
} = useAppContext()
// const spaceId = useGetSpaceURLParam()

const navigate = useNavigate()
return (
<>
<SandboxRoot
logout={() => navigate('/logout')}
currentUser={currentUser}
pinnedMenu={null}
recentMenu={[]}
Expand Down

0 comments on commit 6d9b914

Please sign in to comment.