From cc4d25f7846a866491ae5c049bfa79e5b9b06f97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Wed, 25 Sep 2024 16:24:17 +0200 Subject: [PATCH] fix: lnurl success action links --- pages/send/PaymentSuccess.tsx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/pages/send/PaymentSuccess.tsx b/pages/send/PaymentSuccess.tsx index 7b944c1..0fc5c2c 100644 --- a/pages/send/PaymentSuccess.tsx +++ b/pages/send/PaymentSuccess.tsx @@ -1,4 +1,4 @@ -import { Link, router, useLocalSearchParams } from "expo-router"; +import { router, useLocalSearchParams } from "expo-router"; import { View } from "react-native"; import { Paid } from "~/animations/Paid"; import { Button } from "~/components/ui/button"; @@ -6,6 +6,7 @@ import { Text } from "~/components/ui/text"; import Screen from "~/components/Screen"; import { useGetFiatAmount } from "~/hooks/useGetFiatAmount"; import { LNURLPaymentSuccessAction } from "lib/lnurl"; +import { openURL } from "expo-linking"; import { Receiver } from "~/components/Receiver"; export function PaymentSuccess() { @@ -49,15 +50,15 @@ export function PaymentSuccess() { } {lnurlSuccessAction.tag == "url" && <> - - {lnurlSuccessAction.description} - + {lnurlSuccessAction.description && + + {lnurlSuccessAction.description} + + } {lnurlSuccessAction.url && - - - + } }