diff options
| author | Jurjen de Vries <[email protected]> | 2025-09-11 00:48:15 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-09-11 00:48:15 +0200 |
| commit | 0c69c9848c6b98c92609d209103efc60003c9723 (patch) | |
| tree | 445121def885f13d0f80c06864ad2ff4d5ef95a1 /src/components/Account.svelte | |
| parent | 2abcf6e435fca5d86960f3ba4228002bfb0a19e6 (diff) | |
| parent | 9277b2921e09ee9dd5f39cf4af30a2330f4d95d1 (diff) | |
| download | coinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.tar.gz coinos-ui-0c69c9848c6b98c92609d209103efc60003c9723.zip | |
Merge branch 'coinos:master' into master
Diffstat (limited to 'src/components/Account.svelte')
| -rw-r--r-- | src/components/Account.svelte | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte index 4edd659c..744821a3 100644 --- a/src/components/Account.svelte +++ b/src/components/Account.svelte @@ -23,36 +23,23 @@ aria-label="Payments" > <div class="flex"> - <Balance {balance} {user} {rate} /> - <a - href={`/payments`} - class="contents" - onclick={setAccount} - aria-label="Payments" - > - <button class="ml-auto flex gap-1 mb-auto pb-4 pl-4"> - <iconify-icon - noobserver - icon="ph:clock-bold" - width="32" - aria-label="Payments" - ></iconify-icon> - </button> - </a> - <a - href={id === user.id ? "/settings/nostr" : `/account/${id}`} - class="contents" - aria-label="Settings" - > - <button class="flex gap-1 mb-auto pb-4 pl-4"> - <iconify-icon - noobserver - icon="ph:gear-bold" - width="32" - aria-label="Settings" - ></iconify-icon> - </button> - </a> + <Balance {balance} {user} {rate} {id} /> + {#if id !== user.id} + <a + href={id === user.id ? "/settings/nostr" : `/account/${id}`} + class="contents" + aria-label="Settings" + > + <button class="flex gap-1 mb-auto pb-4 pl-4 ml-auto"> + <iconify-icon + noobserver + icon="ph:gear-bold" + width="32" + aria-label="Settings" + ></iconify-icon> + </button> + </a> + {/if} </div> <div class="flex justify-center w-full text-xl gap-2"> |
