From 0d695d5e15c0e498dec7ed1a983e3c866d9908b1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 28 Dec 2023 22:46:13 -0800 Subject: format --- .../(app)/[username]/invoice/[id]/+page.svelte | 24 +++++++++++----------- .../[username]/invoice/[id]/paid/+page.svelte | 14 +++++++++---- src/routes/(app)/payment/[id]/+page.svelte | 2 +- 3 files changed, 23 insertions(+), 17 deletions(-) (limited to 'src/routes/(app)') diff --git a/src/routes/(app)/[username]/invoice/[id]/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/+page.svelte index 709f214b..17882e1a 100644 --- a/src/routes/(app)/[username]/invoice/[id]/+page.svelte +++ b/src/routes/(app)/[username]/invoice/[id]/+page.svelte @@ -109,7 +109,9 @@ } }); - $: link = [types.bitcoin, types.liquid].includes(type) ? text : `lightning:${text}`; + $: link = [types.bitcoin, types.liquid].includes(type) + ? text + : `lightning:${text}`; $: txt = [types.bitcoin, types.liquid].includes(type) ? hash : text; let setType = async (type) => { @@ -127,19 +129,18 @@ {#if showQr} - {txt} + ? invoice.text + : "lightning:" + invoice.text} + > + {txt} {/if} - {#if amount > 0}
@@ -202,7 +203,6 @@ > ⚡️ Lightning -
diff --git a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte index ee00214c..700ac972 100644 --- a/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte +++ b/src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte @@ -8,18 +8,21 @@ export let data; let amount, currency, rate, received, pending, tip, user, id; - $: update(data) + $: update(data); let update = (data) => { ({ amount, currency, rate, received, pending, tip, user, id } = data.invoice); - } + }; toast.pop(0);
{#if received} -
+
@@ -47,7 +50,10 @@ {/if} {#if pending} -
+
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 49af6f70..df2277b7 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -146,7 +146,7 @@
-- cgit v1.2.3