diff options
| author | Adam Soltys <[email protected]> | 2023-12-18 21:56:29 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-12-18 21:56:29 -0800 |
| commit | 02a945afd4edabcc4427b02e5693f22e4a0d74bc (patch) | |
| tree | f6485766ebcf2873ab55927cecb2995d3122fcf2 /src | |
| parent | f2339f06a1869c4bdc9537499192a9d70eb2a152 (diff) | |
| download | coinos-ui-02a945afd4edabcc4427b02e5693f22e4a0d74bc.tar.gz coinos-ui-02a945afd4edabcc4427b02e5693f22e4a0d74bc.zip | |
fix enter button on send lnurl
Diffstat (limited to 'src')
| -rw-r--r-- | src/components/Lnurlp.svelte | 8 | ||||
| -rw-r--r-- | src/routes/(app)/send/user/[username]/[...amount]/+page.svelte | 4 |
2 files changed, 7 insertions, 5 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} diff --git a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte index c97d0377..7d880cac 100644 --- a/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte +++ b/src/routes/(app)/send/user/[username]/[...amount]/+page.svelte @@ -96,8 +96,8 @@ bind:this={next} 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" on:click={setAmount} - on:keydown={setAmount}> Next </button> - {/if} + on:keydown={setAmount}> {$t("payments.next")}</button> + {/if} </div> </form> </div> |
