From 78c201d8d9d2f3ec07f6ea36201977846e29ccd9 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 4 Feb 2026 12:42:42 -0800 Subject: homepage design and currency toggling --- src/routes/(app)/send/fund/[...name]/[...amount]/+page.svelte | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/routes/(app)/send/fund') 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)}{#if $fiatStore} + Max {f((balance * rate) / sats, currency, locale)} + {:else} + Max ⚡️{s(balance)} + {/if}