diff --git a/lumina/components/headerComponents/AvatarDropdown.tsx b/lumina/components/headerComponents/AvatarDropdown.tsx index 55af16c..c75ae49 100644 --- a/lumina/components/headerComponents/AvatarDropdown.tsx +++ b/lumina/components/headerComponents/AvatarDropdown.tsx @@ -17,44 +17,37 @@ import Link from "next/link" import { nip19 } from "nostr-tools" export function AvatarDropdown() { - let pubkey = window.localStorage.getItem('pubkey'); let pubkeyEncoded = pubkey ? nip19.npubEncode(pubkey) : pubkey; - let src = "https://robohash.org/" + (pubkey as string); - const { data: userData } = useProfile({ pubkey: pubkey as string, }); - if (pubkey !== null) { src = userData?.picture || "https://robohash.org/" + pubkey; } - return ( - {/* */} - + Profile - - + + Settings - { window.localStorage.clear(); window.location.href = "/" }}> + { + window.localStorage.clear(); + window.location.href = "/"; + }}> Logout