aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Account.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/Account.svelte')
-rw-r--r--src/components/Account.svelte47
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">