From bee96ca44e871b0482012be50e8e7686f534c5a3 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 12 Nov 2024 23:36:15 -0800 Subject: lightning bolt --- src/components/InvoiceData.svelte | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) (limited to 'src/components/InvoiceData.svelte') diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte index 2298d150..c6721829 100644 --- a/src/components/InvoiceData.svelte +++ b/src/components/InvoiceData.svelte @@ -10,7 +10,7 @@ amountFiat, currency, tip, - rate + rate, } = $props(); @@ -49,23 +49,31 @@ {#if amount > 0}
-
- {f(amountFiat, currency)} +
+
{f(amountFiat, currency)}
{#if tip} - - +{f(tip * (rate / sats), currency)} - +
+
+
+
{f(tip * (rate / sats), currency)}
+
{/if}
-
- ⚡️{`${s(amount)}`} - +
+
+ +
+ {`${s(amount)}`} +
+
{#if tip} - - +⚡️{s(tip)} - +
+
+
+ +
{s(tip)}
+
{/if}
-- cgit v1.2.3