Fix some icons, add privacy nav item, add close button to modal dialog, make settings menu nicer

This commit is contained in:
Jon Staab
2026-03-12 17:21:01 -07:00
parent 9e74c94871
commit a59ffb8758
5 changed files with 74 additions and 114 deletions
+7 -2
View File
@@ -17,15 +17,20 @@
url?: string
showPubkey?: boolean
avatarSize?: number
inert?: boolean
}
const {pubkey, url, showPubkey, avatarSize = 10}: Props = $props()
const {pubkey, url, showPubkey, inert, avatarSize = 10}: Props = $props()
const relays = removeUndefined([url])
const profileDisplay = deriveProfileDisplay(pubkey, relays)
const handle = deriveHandleForPubkey(pubkey)
const openProfile = () => pushModal(ProfileDetail, {pubkey, url})
const openProfile = () => {
if (!inert) {
pushModal(ProfileDetail, {pubkey, url})
}
}
const copyPubkey = () => clip(nip19.npubEncode(pubkey))
</script>