mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-04-09 20:29:17 +02:00
show lightning address
This commit is contained in:
parent
fc7acc28b5
commit
980c68a42a
5
.changeset/five-news-dress.md
Normal file
5
.changeset/five-news-dress.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"nostrudel": minor
|
||||
---
|
||||
|
||||
Show lightning address on about page
|
@ -27,8 +27,7 @@ import { useAdditionalRelayContext } from "../../providers/additional-relay-cont
|
||||
import { useUserMetadata } from "../../hooks/use-user-metadata";
|
||||
import { embedNostrLinks, renderGenericUrl } from "../../components/embed-types";
|
||||
import { EmbedableContent, embedUrls } from "../../helpers/embeds";
|
||||
import { useCurrentAccount } from "../../hooks/use-current-account";
|
||||
import { ArrowDownSIcon, ArrowUpSIcon, AtIcon, ExternalLinkIcon, KeyIcon } from "../../components/icons";
|
||||
import { ArrowDownSIcon, ArrowUpSIcon, AtIcon, ExternalLinkIcon, KeyIcon, LightningIcon } from "../../components/icons";
|
||||
import { normalizeToBech32 } from "../../helpers/nip19";
|
||||
import { Bech32Prefix } from "../../helpers/nip19";
|
||||
import { truncatedId } from "../../helpers/nostr-event";
|
||||
@ -131,6 +130,12 @@ export default function UserAboutTab() {
|
||||
)}
|
||||
|
||||
<Flex gap="2" px="2" direction="column">
|
||||
{metadata?.lud16 && (
|
||||
<Flex gap="2">
|
||||
<LightningIcon />
|
||||
<Text>{metadata.lud16}</Text>
|
||||
</Flex>
|
||||
)}
|
||||
{metadata?.nip05 && (
|
||||
<Flex gap="2">
|
||||
<AtIcon />
|
||||
|
Loading…
x
Reference in New Issue
Block a user