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/locales/en.json | 2 +- src/routes/(app)/payment/[id]/+page.svelte | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/locales/en.json b/src/locales/en.json index fda23d7e..bede56ad 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -319,7 +319,7 @@ "id": "Transaction ID", "details": "Transaction Details", "header": "Payments", - "preimage": "Proof of payment", + "preimage": "Lightning preimage", "maxfee": "Max routing fee", "type": "Type", "time": "Time", 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