aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-27 08:51:53 -0800
committerAdam Soltys <[email protected]>2024-11-27 08:51:53 -0800
commit1bfd9780998dbab04e0b2cdbf7e82da39336489d (patch)
tree584afc2a8d1183968cac8b43cabf8b9f70b0f32f
parentb60326bb07eb2fae758dfe96f73ef82e2c10263d (diff)
downloadcoinos-ui-1bfd9780998dbab04e0b2cdbf7e82da39336489d.tar.gz
coinos-ui-1bfd9780998dbab04e0b2cdbf7e82da39336489d.zip
warnings
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte
index 6171dce9..85821fee 100644
--- a/src/routes/(app)/payment/[id]/+page.svelte
+++ b/src/routes/(app)/payment/[id]/+page.svelte
@@ -41,12 +41,14 @@
currency,
} = $derived(p);
let [txid, vout] = $derived(amount > 0 ? ref.split(":") : [hash]);
- let a = Math.abs(amount);
+ let a = $derived(Math.abs(amount));
- let expl = {
- bitcoin: PUBLIC_EXPLORER,
- liquid: PUBLIC_LIQUID_EXPLORER,
- }[type];
+ let expl = $derived(
+ {
+ bitcoin: PUBLIC_EXPLORER,
+ liquid: PUBLIC_LIQUID_EXPLORER,
+ }[type],
+ );
let print = async () => {
await post(`/payment/${id}/print`, { id });
@@ -92,15 +94,15 @@
</h1>
{#if p.with}
- <div onclick={() => goto(`/${p.with.username}`)}>
+ <a href={`/${p.with.username}`}>
<span class="text-lg text-secondary my-auto mr-2">{direction}</span>
<div class="flex">
<div class="my-auto">
- <Avatar user={p.with} size={20} />
+ <Avatar user={p.with} size={20} disabled={true} />
</div>
<div class="my-auto ml-1">{p.with.username}</div>
</div>
- </div>
+ </a>
{/if}
{#if p.type === types.fund}
<div>
@@ -140,7 +142,7 @@
{#if type === types.ecash && amount < 0}
<a href={`/ecash/${memo}`} class="block">
<button class="btn">
- <img src="/images/cash.png" class="w-8" />
+ <img src="/images/cash.png" class="w-8" alt="Cash" />
<div>{$t("payments.ecashToken")}</div>
</button>
</a>