스킬 정리 및 리팩토링
This commit is contained in:
@@ -6,8 +6,6 @@ import {
|
||||
ChevronLeft,
|
||||
Home,
|
||||
Settings,
|
||||
User,
|
||||
Wallet,
|
||||
} from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { usePathname } from "next/navigation";
|
||||
@@ -31,20 +29,6 @@ const MENU_ITEMS: MenuItem[] = [
|
||||
badge: "LIVE",
|
||||
showInBottomNav: true,
|
||||
},
|
||||
{
|
||||
title: "자산현황",
|
||||
href: "/assets",
|
||||
icon: Wallet,
|
||||
variant: "ghost",
|
||||
showInBottomNav: true,
|
||||
},
|
||||
{
|
||||
title: "프로필",
|
||||
href: "/profile",
|
||||
icon: User,
|
||||
variant: "ghost",
|
||||
showInBottomNav: false,
|
||||
},
|
||||
{
|
||||
title: "설정",
|
||||
href: "/settings",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"use client";
|
||||
|
||||
import { User } from "@supabase/supabase-js";
|
||||
import { LogOut, Settings, User as UserIcon } from "lucide-react";
|
||||
import { LogOut, Settings } from "lucide-react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import { signout } from "@/features/auth/actions";
|
||||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||
@@ -54,6 +54,7 @@ export function UserMenu({ user, blendWithBackground = false }: UserMenuProps) {
|
||||
|
||||
for (const key of SESSION_RELATED_STORAGE_KEYS) {
|
||||
window.localStorage.removeItem(key);
|
||||
window.sessionStorage.removeItem(key);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -97,11 +98,6 @@ export function UserMenu({ user, blendWithBackground = false }: UserMenuProps) {
|
||||
|
||||
<DropdownMenuSeparator />
|
||||
|
||||
<DropdownMenuItem onClick={() => router.push("/profile")}>
|
||||
<UserIcon className="mr-2 h-4 w-4" />
|
||||
<span>프로필</span>
|
||||
</DropdownMenuItem>
|
||||
|
||||
<DropdownMenuItem onClick={() => router.push("/settings")}>
|
||||
<Settings className="mr-2 h-4 w-4" />
|
||||
<span>설정</span>
|
||||
|
||||
Reference in New Issue
Block a user