aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/invoice
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/invoice
parentd0f19f20021cab8c740bda8c3d360748fd6c30de (diff)
downloadcoinos-ui-614fbd99b7963ec89666b8b4252fa5f73c81653c.tar.gz
coinos-ui-614fbd99b7963ec89666b8b4252fa5f73c81653c.zip
amount component
Diffstat (limited to 'src/routes/(app)/send/invoice')
-rw-r--r--src/routes/(app)/send/invoice/[id]/+page.svelte22
1 files changed, 3 insertions, 19 deletions
diff --git a/src/routes/(app)/send/invoice/[id]/+page.svelte b/src/routes/(app)/send/invoice/[id]/+page.svelte
index 57f33f24..f5259170 100644
--- a/src/routes/(app)/send/invoice/[id]/+page.svelte
+++ b/src/routes/(app)/send/invoice/[id]/+page.svelte
@@ -7,6 +7,7 @@
import { goto, invalidateAll } from "$app/navigation";
import { pin } from "$lib/store";
import { enhance } from "$app/forms";
+ import Amount from "$comp/Amount.svelte";
import Avatar from "$comp/Avatar.svelte";
import Icon from "$comp/Icon.svelte";
import Numpad from "$comp/Numpad.svelte";
@@ -18,7 +19,7 @@
post,
back,
f,
- fiat as toFiat,
+ toFiat,
s,
sats,
focus,
@@ -99,25 +100,8 @@
<h1 class="text-4xl font-bold">
{$t("payments.send")}
</h1>
- <div>
- <h2 class="text-2xl md:text-3xl font-semibold">
- {f(toFiat(amount, rate), currency)}
- {#if tip}
- <span class="text-lg">
- + {f(toFiat(tip, rate), currency)}
- </span>
- {/if}
- </h2>
- <h3 class="text-secondary md:text-lg mt-1">
- ⚡️{s(amount)}
- {#if tip}
- <span class="text-lg">
- + ⚡️{s(tip)}
- </span>
- {/if}
- </h3>
- </div>
+ <Amount {amount} {tip} {rate} {currency} />
<h1 class="text-xl md:text-2xl text-secondary">
{$t("payments.to")}