diff options
| author | Adam Soltys <[email protected]> | 2026-02-14 15:46:09 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-14 15:46:09 -0800 |
| commit | 40fc5fe98c08357dff41539de48532d554aa73cb (patch) | |
| tree | 289e6f1af7f256b1e8ddab75d74e272ead7baa2f /src/routes/(app)/account | |
| parent | d242a387279119cfc6e191eff3b4e2228cbb5a4e (diff) | |
| download | coinos-ui-40fc5fe98c08357dff41539de48532d554aa73cb.tar.gz coinos-ui-40fc5fe98c08357dff41539de48532d554aa73cb.zip | |
custodial ark sends
Diffstat (limited to 'src/routes/(app)/account')
| -rw-r--r-- | src/routes/(app)/account/[id]/+page.svelte | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/src/routes/(app)/account/[id]/+page.svelte b/src/routes/(app)/account/[id]/+page.svelte index fa9d744d..157dd096 100644 --- a/src/routes/(app)/account/[id]/+page.svelte +++ b/src/routes/(app)/account/[id]/+page.svelte @@ -30,7 +30,7 @@ let currency = $state(data.account.currency || data.user.currency); let autowithdraw = $state(data.account.autowithdraw || false); let threshold = $state(data.account.threshold || data.user.threshold || 1000000); - let reserve = $state(data.account.reserve || data.user.reserve || 0); + let reserve = $state(data.account.reserve ?? 0); let destination = $state(data.account.destination || data.user.destination || ""); let rate = $derived(rates[currency]); @@ -113,21 +113,19 @@ </script> <div class="space-y-5"> - <h1 class="text-center text-3xl font-semibold">{$t("payments.accountSettings")}</h1> + <h1 class="text-center text-3xl font-semibold flex items-center justify-center gap-2"> + {#if account.type === "ark"} + <img src="/images/ark.png" class="w-8 h-8 rounded-full object-cover" alt="Ark" /> + {:else if seed} + <iconify-icon noobserver icon="cryptocurrency-color:btc" width="32"></iconify-icon> + {:else} + <img src="/images/icon.png" class="w-8 h-8" alt="Coinos" /> + {/if} + {displayType} {$t("payments.accountSettings").toLowerCase()} + </h1> <div class="container w-full mx-auto text-lg px-4 max-w-xl space-y-2"> <form class="space-y-5 pb-8" method="POST" use:enhance> - <div class="flex items-center gap-2 text-lg"> - <span class="font-bold">{$t("accounts.accountType")}:</span> - {#if account.type === "ark"} - <img src="/images/ark.png" class="w-6 h-6 rounded-full object-cover" alt="Ark" /> - {:else if seed} - <iconify-icon noobserver icon="cryptocurrency-color:btc" width="24"></iconify-icon> - {:else} - <img src="/images/icon.png" class="w-6 h-6" alt="Coinos" /> - {/if} - {displayType} - </div> <div class="space-y-1"> <label for="name" class="font-bold block">{$t("accounts.name")}</label> @@ -213,7 +211,7 @@ </button> {/if} - {#if seed} + {#if seed || account.type === "ark"} <button onclick={del} type="button" class="btn"> <iconify-icon noobserver icon="ph:trash-bold" width="32"></iconify-icon> <div class="my-auto">{$t("accounts.deleteAccount")}</div> |
