aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/send/fund
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-04 12:42:42 -0800
committerAdam Soltys <[email protected]>2026-02-11 15:34:19 -0800
commit78c201d8d9d2f3ec07f6ea36201977846e29ccd9 (patch)
tree413d697c2cfa9d3e867c791e161183bad958ed86 /src/routes/(app)/send/fund
parent882c3bd3fd01b6001172c61e0d2227d962254c62 (diff)
downloadcoinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.tar.gz
coinos-ui-78c201d8d9d2f3ec07f6ea36201977846e29ccd9.zip
homepage design and currency toggling
Diffstat (limited to 'src/routes/(app)/send/fund')
-rw-r--r--src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte
index f6b8cb6d..9cedbf8a 100644
--- a/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte
+++ b/src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte
@@ -4,9 +4,9 @@
import Numpad from "$comp/Numpad.svelte";
import Spinner from "$comp/Spinner.svelte";
import { page } from "$app/stores";
- import { pin } from "$lib/store";
+ import { fiat as fiatStore, pin } from "$lib/store";
import handler from "$lib/handler";
- import { loc, s } from "$lib/utils";
+ import { loc, s, f, sats } from "$lib/utils";
import { applyAction, deserialize } from "$app/forms";
let { data, form } = $props();
@@ -68,7 +68,12 @@
class="btn !w-auto grow"
onclick={setMax}
disabled={submitting}
- onkeydown={setMax}>Max ⚡️{s(balance)}</button
+ onkeydown={setMax}
+ >{#if $fiatStore}
+ Max {f((balance * rate) / sats, currency, locale)}
+ {:else}
+ Max ⚡️{s(balance)}
+ {/if}</button
>
<button