Skip to content

Commit ab8e38d

Browse files
committed
refactor: reorganize imports and update link styles in AuthenticatedUserMenu for consistency
1 parent 3af7c1b commit ab8e38d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/components/Navbar/AuthenticatedUserMenu.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
"use client";
22

3+
import * as sessionActions from "@/backend/services/session.actions";
34
import { useTranslation } from "@/i18n/use-translation";
45
import { useSession } from "@/store/session.atom";
6+
import Link from "next/link";
57
import { useAppConfirm } from "../app-confirm";
6-
import * as sessionActions from "@/backend/services/session.actions";
8+
import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";
79
import {
810
DropdownMenu,
911
DropdownMenuContent,
1012
DropdownMenuItem,
1113
DropdownMenuTrigger,
1214
} from "../ui/dropdown-menu";
13-
import { Avatar, AvatarFallback, AvatarImage } from "../ui/avatar";
14-
import Link from "next/link";
1515

1616
const AuthenticatedUserMenu = () => {
1717
const { _t } = useTranslation();
@@ -62,16 +62,16 @@ const AuthenticatedUserMenu = () => {
6262
{_t("Bookmarks")}
6363
</Link>
6464
</DropdownMenuItem>
65-
<DropdownMenuItem>
65+
<DropdownMenuItem asChild>
6666
<Link
67-
className="text-foreground cursor-pointer block"
67+
className="text-foreground cursor-pointer"
6868
href="/dashboard/settings"
6969
>
7070
{_t("Settings")}
7171
</Link>
7272
</DropdownMenuItem>
7373
<DropdownMenuItem
74-
className="cursor-pointer block"
74+
className="cursor-pointer block hover:underline"
7575
onClick={handleLogout}
7676
>
7777
{_t("Logout")}

0 commit comments

Comments
 (0)