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/components/Lnurlw.svelte | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/components/Lnurlw.svelte') diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index 5dc980c2..9cf30f0c 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -52,14 +52,15 @@ {#if minWithdrawable === maxWithdrawable}
-
- {f(amountFiat, currency)} -
-
- ⚡️{`${s(amount)}`} -
+ {#if $fiat} +
{f(amountFiat, currency)}
+ {:else} +
+ ⚡️{`${s(amount)}`} +
+ {/if}
{:else} @@ -88,7 +89,11 @@ onclick={setMax} disabled={submitting} onkeydown={setMax} - >Max ⚡️{s(Math.floor(maxWithdrawable / 1000))}{#if $fiat} + Max {f((Math.floor(maxWithdrawable / 1000) * rate) / sats, currency)} + {:else} + Max ⚡️{s(Math.floor(maxWithdrawable / 1000))} + {/if} {/if} -- cgit v1.2.3