From 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 11 Feb 2026 20:10:43 -0800 Subject: format --- src/routes/(app)/payment/[id]/+page.svelte | 49 ++++++------------------ src/routes/(app)/payment/[id]/plain/+page.svelte | 12 +----- 2 files changed, 13 insertions(+), 48 deletions(-) (limited to 'src/routes/(app)/payment') diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index 436a7ab6..b8a4223d 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -2,18 +2,7 @@ import { browser } from "$app/environment"; import { onMount, tick } from "svelte"; import { t, loading } from "$lib/translations"; - import { - copy, - f, - s, - loc, - toFiat, - post, - sats, - fail, - success, - types, - } from "$lib/utils"; + import { copy, f, s, loc, toFiat, post, sats, fail, success, types } from "$lib/utils"; import { fiat } from "$lib/store"; const toggleFiat = (e) => { @@ -77,9 +66,7 @@ if (type === types.fund) a = 0 - a; direction = a > 0 ? $t("payments.from") : $t("payments.to"); - if (direction) - direction = - direction[0].toUpperCase() + direction.substr(1, direction.length); + if (direction) direction = direction[0].toUpperCase() + direction.substr(1, direction.length); }); @@ -98,11 +85,7 @@ {:else}
- + {s(amount, userLocale)}
{/if} @@ -152,11 +135,7 @@
- + {s((1 * sats) / rate)} = {f(1, currency, userLocale, 0, 0)}
@@ -179,15 +158,17 @@ {:else if type === types.fund} - {$t("payments.viewFund")} + {$t( + "payments.viewFund", + )} {:else if memo?.includes("9734")} {@const eid = JSON.parse(memo).tags.find((t) => t[0] === "e")[1]} Nostr - {$t("payments.zappedEvent")} + {$t( + "payments.zappedEvent", + )} {:else if memo}
@@ -220,10 +201,7 @@ rel="noreferrer">{txid}
-
@@ -234,10 +212,7 @@ Path
{path}
-
diff --git a/src/routes/(app)/payment/[id]/plain/+page.svelte b/src/routes/(app)/payment/[id]/plain/+page.svelte index 46197260..87ad2207 100644 --- a/src/routes/(app)/payment/[id]/plain/+page.svelte +++ b/src/routes/(app)/payment/[id]/plain/+page.svelte @@ -3,17 +3,7 @@ import { onMount } from "svelte"; import { browser } from "$app/environment"; import { t } from "$lib/translations"; - import { - back, - copy, - f, - s, - toFiat, - post, - sats, - success, - types, - } from "$lib/utils"; + import { back, copy, f, s, toFiat, post, sats, success, types } from "$lib/utils"; import { fiat } from "$lib/store"; import Avatar from "$comp/Avatar.svelte"; import { format } from "date-fns"; -- cgit v1.2.3