add link to lnurlp endpoint

This commit is contained in:
hzrd149
2023-08-15 16:04:47 -05:00
parent 4cb2b39f56
commit 6b26fa93b8

View File

@@ -40,6 +40,7 @@ import { UserAvatar } from "../../components/user-avatar";
import { getUserDisplayName } from "../../helpers/user-metadata"; import { getUserDisplayName } from "../../helpers/user-metadata";
import { useSharableProfileId } from "../../hooks/use-shareable-profile-id"; import { useSharableProfileId } from "../../hooks/use-shareable-profile-id";
import { parseAddress } from "../../services/dns-identity"; import { parseAddress } from "../../services/dns-identity";
import { getLudEndpoint } from "../../helpers/lnurl";
function buildDescriptionContent(description: string) { function buildDescriptionContent(description: string) {
let content: EmbedableContent = [description.trim()]; let content: EmbedableContent = [description.trim()];
@@ -124,7 +125,9 @@ export default function UserAboutTab() {
{metadata?.lud16 && ( {metadata?.lud16 && (
<Flex gap="2"> <Flex gap="2">
<LightningIcon /> <LightningIcon />
<Text>{metadata.lud16}</Text> <Link href={getLudEndpoint(metadata.lud16)} isExternal>
{metadata.lud16}
</Link>
</Flex> </Flex>
)} )}
{parsedNip05 && ( {parsedNip05 && (