Skip to content

Commit

Permalink
fix: formatting + font styles
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron committed Sep 11, 2024
1 parent 36ee4a1 commit 15b2ee3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
30 changes: 15 additions & 15 deletions pages/send/ConfirmPayment.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export function ConfirmPayment() {
<View className="flex flex-col gap-2">
<View className="flex flex-row items-center justify-center gap-2">
<Text className="text-5xl font-bold2 text-foreground">
{decodedInvoice.satoshi}
{new Intl.NumberFormat().format(decodedInvoice.satoshi)}
</Text>
<Text className="text-3xl font-bold2 text-muted-foreground">
sats
Expand Down Expand Up @@ -96,20 +96,20 @@ export function ConfirmPayment() {
)}
{
/* only show "To" for lightning addresses */ originalText !==
invoice &&
originalText
.toLowerCase()
.replace("lightning:", "")
.includes("@") && (
<View className="flex flex-col gap-2">
<Text className="text-muted-foreground text-center font-semibold2">
To
</Text>
<Text className="text-center text-foreground text-2xl font-medium2">
{originalText.toLowerCase().replace("lightning:", "")}
</Text>
</View>
)
invoice &&
originalText
.toLowerCase()
.replace("lightning:", "")
.includes("@") && (
<View className="flex flex-col gap-2">
<Text className="text-muted-foreground text-center font-semibold2">
To
</Text>
<Text className="text-center text-foreground text-2xl font-medium2">
{originalText.toLowerCase().replace("lightning:", "")}
</Text>
</View>
)
}
</View>
<View className="p-6">
Expand Down
4 changes: 2 additions & 2 deletions pages/send/PaymentSuccess.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ export function PaymentSuccess() {
</View>
{originalText !== invoice &&
<View>
<Text className="text-muted-foreground text-center text-xl font-bold2">
<Text className="text-muted-foreground text-center font-semibold2">
Sent to
</Text>
<Text className="text-foreground text-center text-xl font-bold2">
<Text className="text-foreground text-center text-2xl font-medium2">
{originalText}
</Text>
</View>
Expand Down

0 comments on commit 15b2ee3

Please sign in to comment.