From 49fbba6f984c53cdc4dbe9f4878dda8f43629380 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Thu, 25 Jun 2026 12:22:24 +0300 Subject: [PATCH] Show all accounts in switcher; current user links to profile --- src/components/auth/AccountSwitcher.tsx | 28 +++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/components/auth/AccountSwitcher.tsx b/src/components/auth/AccountSwitcher.tsx index 9309d42..72a4373 100644 --- a/src/components/auth/AccountSwitcher.tsx +++ b/src/components/auth/AccountSwitcher.tsx @@ -1,4 +1,6 @@ import { ChevronDown, LogOut, UserIcon, UserPlus } from 'lucide-react'; +import { Link } from 'react-router-dom'; +import { nip19 } from 'nostr-tools'; import { DropdownMenu, DropdownMenuContent, @@ -48,7 +50,30 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) { -
Switch Account
+ + + + + + {isCurrentUserPending ? ( + + ) : ( + getDisplayName(currentUser)?.charAt(0) || + )} + + +
+ {isCurrentUserPending ? ( + + ) : ( +

{getDisplayName(currentUser)}

+ )} +
+ +
{otherUsers.map((user) => { const isPending = isLoading && !user.metadata.name; return ( @@ -77,7 +102,6 @@ export function AccountSwitcher({ onAddAccountClick }: AccountSwitcherProps) {

{getDisplayName(user)}

)} - {user.id === currentUser.id &&
} ); })}