diff --git a/apps/web/components/header/index.tsx b/apps/web/components/header/index.tsx index 68b754b..b09ba72 100644 --- a/apps/web/components/header/index.tsx +++ b/apps/web/components/header/index.tsx @@ -29,7 +29,7 @@ export default function Header() { -
+
diff --git a/apps/web/components/header/login-button.tsx b/apps/web/components/header/login-button.tsx index 7c640c3..883841a 100644 --- a/apps/web/components/header/login-button.tsx +++ b/apps/web/components/header/login-button.tsx @@ -3,7 +3,15 @@ import Link from 'next/link'; import { Skeleton } from '@/components/ui/skeleton'; import { Button } from "@/components/ui/button"; -// import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" +import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar" +import { + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuLabel, + DropdownMenuSeparator, + DropdownMenuTrigger, +} from "@/components/ui/dropdown-menu" import useAuth from '@/hooks/useAuth'; export default function LoginButton() { @@ -15,24 +23,34 @@ export default function LoginButton() { if (!auth.data?.loggedIn) { return ( - ); } - // return ( - // - // - // {auth.data.user.userName.substring(0, 1)} - // - // ); - return ( - + + + + + {auth.data.user.userName.substring(0, 1)} + + + + + {auth.data.user.userName} + + + + + 로그아웃 + + + + ); }