aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-04 14:05:47 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:34:19 -0800
commit59fbd17aad12acfa19eb730c4ede67d50962ba9b (patch)
treebbd4bbf37605d4d59d290bb2ab6755a278b0ee04 /src/components
parent78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (diff)
downloadcoinos-ui-59fbd17aad12acfa19eb730c4ede67d50962ba9b.tar.gz
coinos-ui-59fbd17aad12acfa19eb730c4ede67d50962ba9b.zip
rename account route
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Account.svelte9
-rw-r--r--src/components/Payments.svelte3
2 files changed, 8 insertions, 4 deletions
diff --git a/src/components/Account.svelte b/src/components/Account.svelte
index 86eb0f74..04ff97ae 100644
--- a/src/components/Account.svelte
+++ b/src/components/Account.svelte
@@ -65,6 +65,13 @@
e.preventDefault();
setAccount(e, "/payments");
};
+
+ let goSettings = (e) => {
+ e.preventDefault();
+ e.stopPropagation();
+ document.cookie = `aid=${id}; path=/; max-age=86400`;
+ goto(`/account/${id}`);
+ };
</script>
<div
@@ -81,7 +88,7 @@
href={`/account/${id}`}
class="font-bold text-lg opacity-60 hover:opacity-100 transition-opacity flex items-center gap-2 shrink-0"
aria-label="Account settings"
- onclick={(e) => e.stopPropagation()}
+ onclick={goSettings}
>
{#if isArk}
<img
diff --git a/src/components/Payments.svelte b/src/components/Payments.svelte
index 16033959..d27a59c1 100644
--- a/src/components/Payments.svelte
+++ b/src/components/Payments.svelte
@@ -92,9 +92,6 @@
></iconify-icon>
{:else if p.type === types.ecash}
<img src="/images/cash.png" class="w-12" alt="Ecash" />
- {:else if p.type === types.reconcile}
- <iconify-icon noobserver icon="ph:scales-bold" width="32"
- ></iconify-icon>
{:else if p.type === types.bitcoin}
<iconify-icon noobserver icon="logos:bitcoin" class="text-3xl"
></iconify-icon>