diff options
| author | Adam Soltys <[email protected]> | 2024-09-09 15:54:22 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2024-09-17 09:18:36 -0700 |
| commit | 9c4816e3a9acb8e917cf3a034a8622d9026632a6 (patch) | |
| tree | 8f02d08bca7d03dcd2e10517dfa31c21f7b90607 /src/components | |
| parent | c270fa28572f08499120ac9d5f58852869d4b254 (diff) | |
| download | coinos-ui-9c4816e3a9acb8e917cf3a034a8622d9026632a6.tar.gz coinos-ui-9c4816e3a9acb8e917cf3a034a8622d9026632a6.zip | |
accounts
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/Account.svelte | 66 |
1 files changed, 28 insertions, 38 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index a781e809..a9b3d6ba 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -4,55 +4,45 @@ import { t } from "$lib/translations"; export let user, rate, account; - let { balance, setup, type, id } = account; + let { seed, balance, id } = account; + $: type = seed ? "Savings":"Cash"; </script> <a href={`/${user.username}/${id}/payments`.replace(/undefined\//, "")}> <div class="border rounded-xl shadow p-4 space-y-5"> <div class="flex justify-center lg:justify-start"> <Balance {balance} {user} {rate} /> - <div class="ml-auto text-secondary">{type}</div> + <div class="ml-auto text-right"> + <div>{type} account</div> + </div> </div> <div class="flex flex-wrap gap-3 justify-center w-full text-xl"> - {#if setup} - <a href={`/send`} class="contents grow"> - <button - type="button" - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" - > - <div class="mx-auto flex gap-2"> - <Icon icon="send" style="w-8" /> - <div class="my-auto">{$t("user.dashboard.send")}</div> - </div> - </button> - </a> + <a href={`/send`} class="contents grow"> + <button + type="button" + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" + > + <div class="mx-auto flex gap-2"> + <Icon icon="send" style="w-8" /> + <div class="my-auto">{$t("user.dashboard.send")}</div> + </div> + </button> + </a> - <a - href={`/${user.username}/${id}/receive`.replace(/undefined\//, "")} - class="contents" + <a + href={`/${user.username}/${id}/receive`.replace(/undefined\//, "")} + class="contents" + > + <button + class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" > - <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" - > - <div class="mx-auto flex gap-2"> - <Icon icon="receive" style="w-8" /> - <div class="my-auto">{$t("user.dashboard.receive")}</div> - </div> - </button> - </a> - {:else} - <a href={`/${user.username}/account/setup`} class="contents"> - <button - class="rounded-2xl border py-5 px-6 font-bold hover:opacity-80 flex bg-primary grow" - > - <div class="mx-auto flex gap-2"> - <Icon icon="settings" style="w-8" /> - <div class="my-auto">{$t("user.dashboard.setup")}</div> - </div> - </button> - </a> - {/if} + <div class="mx-auto flex gap-2"> + <Icon icon="receive" style="w-8" /> + <div class="my-auto">{$t("user.dashboard.receive")}</div> + </div> + </button> + </a> </div> </div> </a> |
