From bd80a713602bff52271d2ddc063369d8fed48036 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 31 Mar 2024 22:53:43 -0700 Subject: payment details --- src/routes/(app)/payment/[id]/+page.svelte | 24 ++++++++++++++++++++---- 1 file changed, 20 insertions(+), 4 deletions(-) (limited to 'src/routes/(app)') diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 3e40d984..139520f9 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -30,6 +30,7 @@ amount, created, confirmed, + memo, rate, type, ref, @@ -52,6 +53,7 @@ amount, created, confirmed, + memo, rate, type, ref, @@ -154,7 +156,7 @@
- Total + {$t("payments.total")}
{f(fiat(a + (tip || 0), rate), currency)} ⚡️{`${s(a + (tip || 0))}`} @@ -163,7 +165,7 @@ {/if}
- Network fee + {$t("payments.networkFee")}
{f(fiat(fee, rate), currency)} ⚡️{`${s(fee)}`} @@ -172,7 +174,7 @@ {#if ourfee > 0}
- Platform fee + {$t("payments.platformFee")}
{f(fiat(ourfee, rate), currency)} ⚡️{`${s(ourfee)}`} @@ -181,13 +183,27 @@ {/if}
- Date + {$t("payments.date")}
{format(new Date(created), "h:mmaaa")} {format(new Date(created), "MMM d, yyyy")}
+ {#if memo} +
+ {$t("payments.memo")} +
{memo}
+
+ {/if} + + {#if type === "lightning"} +
+ {$t("payments.preimage")} +
{ref}
+
+ {/if} + {#if type === "bitcoin" || type === "liquid"}
Txid -- cgit v1.2.3