diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
| commit | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch) | |
| tree | d6bc2557c56b93177bb14aa376847c6e123a4862 /src/routes/(app)/fund | |
| parent | 13466248004327e9a026cb89f94926f9b060d1c1 (diff) | |
| download | coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip | |
format
Diffstat (limited to 'src/routes/(app)/fund')
| -rw-r--r-- | src/routes/(app)/fund/[id]/+page.svelte | 30 | ||||
| -rw-r--r-- | src/routes/(app)/fund/[id]/access/+page.svelte | 15 | ||||
| -rw-r--r-- | src/routes/(app)/fund/[id]/gift/+page.svelte | 6 | ||||
| -rw-r--r-- | src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte | 8 | ||||
| -rw-r--r-- | src/routes/(app)/fund/[id]/withdraw/+page.svelte | 7 |
5 files changed, 13 insertions, 53 deletions
diff --git a/src/routes/(app)/fund/[id]/+page.svelte b/src/routes/(app)/fund/[id]/+page.svelte index 34e0d503..8d83038b 100644 --- a/src/routes/(app)/fund/[id]/+page.svelte +++ b/src/routes/(app)/fund/[id]/+page.svelte @@ -36,16 +36,10 @@ <div class="container px-4 max-w-4xl mx-auto mt-10 space-y-5"> <div class="flex justify-center items-center"> - <div - class="md:shadow-xl rounded-3xl md:px-10 pt-5 pb-10 space-y-5 w-full md:mx-5" - > + <div class="md:shadow-xl rounded-3xl md:px-10 pt-5 pb-10 space-y-5 w-full md:mx-5"> {#if show} <div class="max-w-[360px] mx-auto"> - <img - src={`/qr/${href}/raw`} - class="z-10 border-4 border-white w-" - alt="URL" - /> + <img src={`/qr/${href}/raw`} class="z-10 border-4 border-white w-" alt="URL" /> </div> {/if} <div class="flex justify-center gap-4"> @@ -72,10 +66,7 @@ </div> {#if (user && !managers.length) || managers.some((m) => m.id === user?.id)} - <a - href={`/fund/${id}/access`} - class="btn !w-auto ml-auto text-secondary grow" - > + <a href={`/fund/${id}/access`} class="btn !w-auto ml-auto text-secondary grow"> <iconify-icon icon="ph:gear-bold" width={32}></iconify-icon> {$t("funds.manage")} </a> @@ -85,8 +76,7 @@ <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> @@ -95,11 +85,7 @@ <div class="grow"> <a href={`/fund/${id}/withdraw`}> <button class="btn"> - <iconify-icon - noobserver - icon="ph:hand-coins-bold" - width="32" - flip="horizontal" + <iconify-icon noobserver icon="ph:hand-coins-bold" width="32" flip="horizontal" ></iconify-icon> {$t("payments.takeFunds")} </button> @@ -109,13 +95,11 @@ </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={`${$page.url.pathname}/gift`} class="btn !w-auto grow"> - <iconify-icon noobserver icon="ph:gift-bold" width="32" - ></iconify-icon> + <iconify-icon noobserver icon="ph:gift-bold" width="32"></iconify-icon> <div class="my-auto">{$t("payments.giftLink")}</div> </a> <!-- <a href={`/qr/${lnurlw}`} class="btn !w-auto grow"> --> diff --git a/src/routes/(app)/fund/[id]/access/+page.svelte b/src/routes/(app)/fund/[id]/access/+page.svelte index 24ded54e..9920fa5b 100644 --- a/src/routes/(app)/fund/[id]/access/+page.svelte +++ b/src/routes/(app)/fund/[id]/access/+page.svelte @@ -23,12 +23,8 @@ <div class="container px-4 max-w-4xl mx-auto mt-10 space-y-5"> <div class="flex justify-center items-center"> - <div - class="md:shadow-xl rounded-3xl md:px-10 pt-5 pb-10 space-y-5 w-full md:mx-5" - > - <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold"> - Fund managers - </h1> + <div class="md:shadow-xl rounded-3xl md:px-10 pt-5 pb-10 space-y-5 w-full md:mx-5"> + <h1 class="px-3 md:px-0 text-center text-3xl md:text-4xl font-semibold">Fund managers</h1> {#each m as c} <a href={`/${c.username}`} class="contents"> @@ -51,12 +47,7 @@ <form method="post" use:enhance class="space-y-2"> <input type="hidden" name="id" value={id} /> - <input - use:focus - name="username" - bind:value={username} - placeholder={$t("funds.username")} - /> + <input use:focus name="username" bind:value={username} placeholder={$t("funds.username")} /> <button type="submit" class="btn"> <iconify-icon icon="ph:plus-bold" width="32"></iconify-icon> {$t("funds.addManager")} diff --git a/src/routes/(app)/fund/[id]/gift/+page.svelte b/src/routes/(app)/fund/[id]/gift/+page.svelte index 9bef9c64..ff05575d 100644 --- a/src/routes/(app)/fund/[id]/gift/+page.svelte +++ b/src/routes/(app)/fund/[id]/gift/+page.svelte @@ -32,11 +32,7 @@ <div class="my-auto break-all min-w-0 !w-auto max-w-full">{text}</div> </button> - <a - href={`/qr/${encodeURIComponent(text)}`} - class="btn !w-auto" - aria-label="Show gift QR" - > + <a href={`/qr/${encodeURIComponent(text)}`} class="btn !w-auto" aria-label="Show gift QR"> <iconify-icon icon="ph:qr-code-bold" width={32}></iconify-icon> </a> </div> diff --git a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte index 451fc128..b67a024b 100644 --- a/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte +++ b/src/routes/(app)/fund/[id]/sweep/[...amount]/+page.svelte @@ -15,13 +15,7 @@ </script> <div class="container px-4 text-center mx-auto"> - <Success - {amount} - {rate} - {currency} - {locale} - title={$t("payments.received")} - /> + <Success {amount} {rate} {currency} {locale} title={$t("payments.received")} /> </div> <a href={`/${user.username}`} aria-label="Continue"> diff --git a/src/routes/(app)/fund/[id]/withdraw/+page.svelte b/src/routes/(app)/fund/[id]/withdraw/+page.svelte index 9b53824d..b8ccd5af 100644 --- a/src/routes/(app)/fund/[id]/withdraw/+page.svelte +++ b/src/routes/(app)/fund/[id]/withdraw/+page.svelte @@ -62,12 +62,7 @@ {/if}</button > - <button - use:focus - bind:this={submit} - type="submit" - class="btn btn-accent !w-auto grow" - > + <button use:focus bind:this={submit} type="submit" class="btn btn-accent !w-auto grow"> {#if submitting} <Spinner /> {:else} |
