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 &&
} ); })}