aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/lightning
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-11-14 10:55:08 -0800
committerAdam Soltys <[email protected]>2024-11-14 10:55:08 -0800
commit614fbd99b7963ec89666b8b4252fa5f73c81653c (patch)
treed2231fb5aecde3de16242f96b1de5d8c805ebe57 /src/routes/(app)/send/lightning
parentd0f19f20021cab8c740bda8c3d360748fd6c30de (diff)
downloadcoinos-ui-614fbd99b7963ec89666b8b4252fa5f73c81653c.tar.gz
coinos-ui-614fbd99b7963ec89666b8b4252fa5f73c81653c.zip
amount component
Diffstat (limited to 'src/routes/(app)/send/lightning')
-rw-r--r--src/routes/(app)/send/lightning/[payreq]/+page.svelte9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/routes/(app)/send/lightning/[payreq]/+page.svelte b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
index 6b9fe4e2..af3e09f4 100644
--- a/src/routes/(app)/send/lightning/[payreq]/+page.svelte
+++ b/src/routes/(app)/send/lightning/[payreq]/+page.svelte
@@ -7,7 +7,7 @@
import Numpad from "$comp/Numpad.svelte";
import Spinner from "$comp/Spinner.svelte";
import { page } from "$app/stores";
- import { back, fiat, f, s, focus } from "$lib/utils";
+ import { back, toFiat, f, s, focus } from "$lib/utils";
import { rate, pin } from "$lib/store";
let { data, form } = $props();
@@ -68,10 +68,7 @@
{$t("payments.send")}
</h1>
- <h2 class="text-3xl font-semibold">
- {f(fiat(amount, $rate), currency)}
- </h2>
- <h3 class="text-secondary text-xl">⚡️{s(amount)}</h3>
+ <Amount {amount} rate={$rate} {currency} />
</div>
<div class="text-xl">
@@ -86,7 +83,7 @@
<div class="flex flex-wrap gap-4 justify-center">
<div class="my-auto">
<h2 class="text-xl">
- {f(fiat(ourfee, $rate), currency)}
+ {f(toFiat(ourfee, $rate), currency)}
</h2>
<h3 class="text-secondary">⚡️{s(ourfee)}</h3>
</div>