aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-12-18 21:56:29 -0800
committerAdam Soltys <[email protected]>2023-12-18 21:56:29 -0800
commit02a945afd4edabcc4427b02e5693f22e4a0d74bc (patch)
treef6485766ebcf2873ab55927cecb2995d3122fcf2 /src/components
parentf2339f06a1869c4bdc9537499192a9d70eb2a152 (diff)
downloadcoinos-ui-02a945afd4edabcc4427b02e5693f22e4a0d74bc.tar.gz
coinos-ui-02a945afd4edabcc4427b02e5693f22e4a0d74bc.zip
fix enter button on send lnurl
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Lnurlp.svelte8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte
index d76d11c4..6785061a 100644
--- a/src/components/Lnurlp.svelte
+++ b/src/components/Lnurlp.svelte
@@ -5,7 +5,7 @@
import Spinner from "$comp/Spinner.svelte";
import { pin } from "$lib/store";
- export let data, form;
+ export let data, form, send;
let { currency } = data.user;
let { minSendable, maxSendable, callback, metadata, rates } = data;
@@ -36,7 +36,7 @@
</div>
{/if}
- <Numpad bind:amount bind:rate {currency} />
+ <Numpad bind:amount bind:rate {currency} bind:submit={send} />
<form action="?/pay" method="POST" use:enhance on:submit={submit}>
<input name="amount" value={amount} type="hidden" />
@@ -47,8 +47,10 @@
<div class="flex w-full">
<button
+ bind:this={send}
type="submit"
- class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24">
+ class="opacity-100 hover:opacity-80'} rounded-2xl border py-3 font-bold mx-auto mt-2 bg-black text-white px-4 w-24"
+ >
{#if loading}
<Spinner />
{:else}