From 674de46a6a9f1b793313b5c027a34d396217ed84 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 5 Nov 2024 00:10:30 -0800 Subject: dark styles --- src/components/InvoiceData.svelte | 72 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 src/components/InvoiceData.svelte (limited to 'src/components/InvoiceData.svelte') diff --git a/src/components/InvoiceData.svelte b/src/components/InvoiceData.svelte new file mode 100644 index 00000000..7723eb56 --- /dev/null +++ b/src/components/InvoiceData.svelte @@ -0,0 +1,72 @@ + + +{#if showQr} +
+ + {txt} + +
+{/if} + +{#if !showQr || !txt.startsWith("ln")} +
+ {txt} +
+{/if} + +{#each invoice.items as i} +
+
{i.quantity}
+
+ {i.name} +
+
+ {f(i.price * i.quantity, currency)} +
+
+ {sat(btc(i.price * i.quantity, rate))} +
+
+{/each} + +{#if amount > 0} +
+
+ {f(amountFiat, currency)} + + {#if tip} + + +{f(tip * (rate / sats), currency)} + + {/if} +
+
+ ⚡️{`${s(amount)}`} + + {#if tip} + + +⚡️{s(tip)} + + {/if} +
+
+{/if} -- cgit v1.2.3