From 355c039dea35aa21d3b2ec737d3868ad3e62541a 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 | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/pages/send/PaymentSuccess.tsx b/pages/send/PaymentSuccess.tsx index 3f5c7d1..40273ad 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"; export function PaymentSuccess() { const getFiatAmount = useGetFiatAmount(); @@ -47,20 +48,18 @@ export function PaymentSuccess() { } {lnurlSuccessAction.tag == "url" && <> - - {lnurlSuccessAction.description} - + {lnurlSuccessAction.description && + + {lnurlSuccessAction.description} + + } {lnurlSuccessAction.url && - - - + } } - - } {originalText !== invoice &&