Skip to content

Commit

Permalink
fix: back to home page redirect (#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
hamster1963 authored Jan 4, 2025
1 parent 2d7c41a commit f667f6b
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/components/header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,14 @@ export default function Header() {
</DropdownMenuItem>
</DropdownMenuGroup>
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={() => {
setDropdownOpen(false)
navigate("/")
}}
className="cursor-pointer"
>
<div className="flex items-center gap-2 w-full">
<DropdownMenuItem className="cursor-pointer">
<a
href="/"
className="flex items-center gap-2 w-full"
>
<HomeIcon />
{t("BackToHome")}
</div>
</a>
</DropdownMenuItem>
<DropdownMenuItem
onClick={logout}
Expand Down

0 comments on commit f667f6b

Please sign in to comment.