aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/fund
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-30 21:53:52 -0800
committerAdam Soltys <[email protected]>2024-12-30 21:53:52 -0800
commit38e786c0d3c2280dd69f22ddf7cdf6ca804e6048 (patch)
tree48893b5eb0253104dfb2847fd0ac371eb1b492ce /src/routes/(app)/fund
parentd96e1580757a1d0531fec0854e4238214ec8c00b (diff)
downloadcoinos-ui-38e786c0d3c2280dd69f22ddf7cdf6ca804e6048.tar.gz
coinos-ui-38e786c0d3c2280dd69f22ddf7cdf6ca804e6048.zip
scrap key generation
Diffstat (limited to 'src/routes/(app)/fund')
-rw-r--r--src/routes/(app)/fund/[id]/+page.svelte18
1 files changed, 12 insertions, 6 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte
index 36a63a9b..5d6ca777 100644
--- a/src/routes/(app)/fund/[id]/+page.svelte
+++ b/src/routes/(app)/fund/[id]/+page.svelte
@@ -26,7 +26,9 @@
let show = $state();
let toggle = () => (show = !show);
let href = $derived(encodeURIComponent($page.url.href));
- let withdrawUrl = encoder.encode(`${$page.url.origin}/api/fund/${id}/withdraw`);
+ let withdrawUrl = encoder.encode(
+ `${$page.url.origin}/api/fund/${id}/withdraw`,
+ );
let lnurlw = bech32.encode("lnurl", bech32.toWords(withdrawUrl), 20000);
</script>
@@ -51,7 +53,8 @@
<div class="grow">
<a href={`/send/fund/${id}`}>
<button class="btn">
- <iconify-icon noobserver icon="ph:plus-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:plus-bold" width="32"
+ ></iconify-icon>
{$t("payments.addFunds")}
</button>
</a>
@@ -59,7 +62,8 @@
<div class="grow">
<a href={`/fund/${id}/withdraw`}>
<button class="btn">
- <iconify-icon noobserver
+ <iconify-icon
+ noobserver
icon="ph:hand-coins-bold"
width="32"
flip="horizontal"
@@ -71,11 +75,13 @@
</div>
<div class="flex gap-2" data-sveltekit-prefetch="off">
<a href={`/qr/${href}`} class="btn !w-auto grow">
- <iconify-icon noobserver icon="ph:link-bold" width="32"></iconify-icon>
+ <iconify-icon noobserver icon="ph:link-bold" width="32"
+ ></iconify-icon>
<div class="my-auto">{$t("payments.shareLink")}</div>
</a>
<a href={`/qr/${lnurlw}`} class="btn !w-auto grow">
- <iconify-icon noobserver
+ <iconify-icon
+ noobserver
icon="ph:lightning-fill"
width="24"
class="text-yellow-300"
@@ -83,7 +89,7 @@
{$t("payments.lnurlw")}
</a>
</div>
- <Payments {payments} fund={true} />
+ <Payments {payments} fund={true} {locale} />
</div>
</div>
</div>