diff --git a/components/home/HomeClient.tsx b/components/home/HomeClient.tsx index af29193..aeff8ec 100644 --- a/components/home/HomeClient.tsx +++ b/components/home/HomeClient.tsx @@ -145,16 +145,6 @@ function HomeContent({ user, profileUsername, activeSessionCount }: HomeClientPr Explore - {user && profileUsername && ( - - Profile - - )} - {user ? (
+ {showUserMenu && ( +
+
+ {[ + ...(profileUsername ? [{ + icon: UserCircle, + label: "View Profile", + action: () => { setShowUserMenu(false); router.push(`/profile/${profileUsername}`); }, + }] : []), + { + icon: LogOut, + label: "Sign out", + action: () => { void handleSignOut(); }, + }, + ].map(({ icon: Icon, label, action }) => ( + + ))} +
+
+ )} +
+ ) : (