aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-28 22:46:13 -0800
committerAdam Soltys <[email protected]>2023-12-28 22:46:13 -0800
commit0d695d5e15c0e498dec7ed1a983e3c866d9908b1 (patch)
tree6ab7c71a1d3eec8c2ee4c9c7c5d862087655a6c3 /src/routes
parentf29464d9300b51210191ba56e33f6f6b64df3497 (diff)
downloadcoinos-ui-0d695d5e15c0e498dec7ed1a983e3c866d9908b1.tar.gz
coinos-ui-0d695d5e15c0e498dec7ed1a983e3c866d9908b1.zip
format
Diffstat (limited to 'src/routes')
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/+page.svelte24
-rw-r--r--src/routes/(app)/[username]/invoice/[id]/paid/+page.svelte14
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte2
3 files changed, 23 insertions, 17 deletions
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}
<a
href={[types.bitcoin, types.liquid].includes(invoice.type)
- ? invoice.text
- : "lightning:" + invoice.text}
- >
- <img
- {src}
- class="mx-auto z-10 shadow-inner rounded-2xl"
- bind:this={qr}
- alt={txt}
- />
+ ? invoice.text
+ : "lightning:" + invoice.text}
+ >
+ <img
+ {src}
+ class="mx-auto z-10 shadow-inner rounded-2xl"
+ bind:this={qr}
+ alt={txt}
+ />
</a>
{/if}
-
{#if amount > 0}
<div class="text-center font-bold text-2xl">
<div>
@@ -202,7 +203,6 @@
>
⚡️ Lightning
</button>
-
</div>
<div class="text-center break-all">
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);
</script>
<div class="container px-4 text-center mx-auto">
{#if received}
- <div class="flex w-full py-5 max-w-[200px] mx-auto" in:scale={{ start: 0.5 }}>
+ <div
+ class="flex w-full py-5 max-w-[200px] mx-auto"
+ in:scale={{ start: 0.5 }}
+ >
<Icon icon="check" style="mx-auto" />
</div>
@@ -47,7 +50,10 @@
{/if}
{#if pending}
- <div class="flex w-full py-5 max-w-[200px] mx-auto" in:scale={{ start: 0.5 }}>
+ <div
+ class="flex w-full py-5 max-w-[200px] mx-auto"
+ in:scale={{ start: 0.5 }}
+ >
<Icon icon="orangeclock" style="mx-auto" />
</div>
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 @@
<button
class="flex font-bold hover:opacity-80 mb-auto my-auto"
on:click={() => copy(id)}
- >
+ >
<Icon icon="copy" style="ml-2 w-12 my-auto" />
</button>
</div>