aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Lnurlw.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-02-11 23:02:30 -0800
committerAdam Soltys <[email protected]>2026-02-11 23:02:30 -0800
commit2e61e8abbc318c36969cb5add0c63df81135b4ab (patch)
tree706396b41da448f0172719313fb6ae30ecebb004 /src/components/Lnurlw.svelte
parent56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (diff)
downloadcoinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.tar.gz
coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.zip
formatting
Diffstat (limited to 'src/components/Lnurlw.svelte')
-rw-r--r--src/components/Lnurlw.svelte15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte
index 9b374fcd..38d103bd 100644
--- a/src/components/Lnurlw.svelte
+++ b/src/components/Lnurlw.svelte
@@ -31,16 +31,12 @@
<div class="container px-4 mt-20 max-w-xl mx-auto">
<div class="text-center mb-8">
<div>
- <h1 class="text-3xl md:text-4xl font-semibold mb-2">
- {defaultDescription}
- </h1>
+ <h1 class="text-3xl md:text-4xl font-semibold mb-2">{defaultDescription}</h1>
</div>
</div>
{#if form?.error}
- <div class="text-red-600 text-center mb-5">
- {form.error}
- </div>
+ <div class="text-red-600 text-center mb-5">{form.error}</div>
{/if}
{#if minWithdrawable === maxWithdrawable}
@@ -74,12 +70,13 @@
onclick={setMax}
disabled={submitting}
onkeydown={setMax}
- >{#if $fiat}
+ >
+ {#if $fiat}
Max {f((Math.floor(maxWithdrawable / 1000) * rate) / sats, currency)}
{:else}
Max ⚡️{s(Math.floor(maxWithdrawable / 1000))}
- {/if}</button
- >
+ {/if}
+ </button>
{/if}
<button use:focus bind:this={submit} type="submit" class="btn btn-accent !w-auto grow">