From 15b2ee36b48c3d50e1f71fdfb7dd318c870d4c82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Wed, 11 Sep 2024 16:18:00 +0200 Subject: [PATCH] fix: formatting + font styles --- pages/send/ConfirmPayment.tsx | 30 +++++++++++++++--------------- pages/send/PaymentSuccess.tsx | 4 ++-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/pages/send/ConfirmPayment.tsx b/pages/send/ConfirmPayment.tsx index 2d72f9c..098730a 100644 --- a/pages/send/ConfirmPayment.tsx +++ b/pages/send/ConfirmPayment.tsx @@ -61,7 +61,7 @@ export function ConfirmPayment() { - {decodedInvoice.satoshi} + {new Intl.NumberFormat().format(decodedInvoice.satoshi)} sats @@ -96,20 +96,20 @@ export function ConfirmPayment() { )} { /* only show "To" for lightning addresses */ originalText !== - invoice && - originalText - .toLowerCase() - .replace("lightning:", "") - .includes("@") && ( - - - To - - - {originalText.toLowerCase().replace("lightning:", "")} - - - ) + invoice && + originalText + .toLowerCase() + .replace("lightning:", "") + .includes("@") && ( + + + To + + + {originalText.toLowerCase().replace("lightning:", "")} + + + ) } diff --git a/pages/send/PaymentSuccess.tsx b/pages/send/PaymentSuccess.tsx index 4a9a8f8..d5eb4cc 100644 --- a/pages/send/PaymentSuccess.tsx +++ b/pages/send/PaymentSuccess.tsx @@ -32,10 +32,10 @@ export function PaymentSuccess() { {originalText !== invoice && - + Sent to - + {originalText}