aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/payment
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)/payment')
-rw-r--r--src/routes/(app)/payment/[id]/+page.svelte17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte
index 657f0c95..c435f844 100644
--- a/src/routes/(app)/payment/[id]/+page.svelte
+++ b/src/routes/(app)/payment/[id]/+page.svelte
@@ -81,9 +81,9 @@
aria-label="Toggle currency display"
>
{#if $fiat}
- <div class="flex items-center gap-1">{f(toFiat(amount, rate), currency, userLocale)}</div>
+ <div class="flex items-center">{f(toFiat(amount, rate), currency, userLocale)}</div>
{:else}
- <div class="flex items-center gap-1">
+ <div class="flex items-center">
<iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon>
{s(amount, userLocale)}
</div>
@@ -144,7 +144,7 @@
<div>
<span class="text-lg text-secondary">{$t("payments.date")}</span>
<div>
- {format(new Date(created), "h:mmaaa", { locale })}{format(new Date(created), "MMM d, yyyy", { locale })}
+ {format(new Date(created), "MMM d, yyyy", { locale })} {format(new Date(created), "h:mmaaa", { locale })}
</div>
</div>
@@ -189,6 +189,17 @@
</div>
{/if}
+ {#if type === types.ark && hash}
+ <div>
+ <span class="text-lg text-secondary">Txid</span>
+ <div class="flex">
+ <div>{hash}</div>
+ <button class="flex font-bold hover:opacity-80 mb-auto my-auto" onclick={() => copy(hash)} aria-label="Copy transaction ID"
+ ></button>
+ </div>
+ </div>
+ {/if}
+
{#if type === "bitcoin" || type === "liquid"}
<div>
<span class="text-lg text-secondary">Txid</span>