aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)/pay
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/routes/(app)/pay
parent56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (diff)
downloadcoinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.tar.gz
coinos-ui-2e61e8abbc318c36969cb5add0c63df81135b4ab.zip
formatting
Diffstat (limited to 'src/routes/(app)/pay')
-rw-r--r--src/routes/(app)/pay/[username]/[...amount]/+page.svelte16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
index 6cae555c..aa46cfd5 100644
--- a/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
+++ b/src/routes/(app)/pay/[username]/[...amount]/+page.svelte
@@ -46,9 +46,7 @@
</script>
{#if form?.message}
- <div class="text-red-600 text-center">
- {form.message}
- </div>
+ <div class="text-red-600 text-center">{form.message}</div>
{/if}
<div class="container px-4 mt-20 max-w-xl mx-auto space-y-2">
@@ -61,17 +59,17 @@
<input name="prompt" value={subject.prompt} type="hidden" />
{#if user?.balance}
- <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}
- >{#if $fiatStore}
+ <button type="button" class="btn !w-auto grow" onclick={setMax} onkeydown={setMax}>
+ {#if $fiatStore}
Max {f((user.balance * rate) / sats, currency, locale)}
{:else}
Max ⚡️{s(user.balance)}
- {/if}</button
- >
+ {/if}
+ </button>
{/if}
<button type="submit" bind:this={next} class="btn btn-accent !w-auto grow">
- {$t("payments.next")}</button
- >
+ {$t("payments.next")}
+ </button>
</form>
</div>