diff options
| author | Adam Soltys <[email protected]> | 2026-02-26 13:36:28 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-26 13:36:28 -0800 |
| commit | a5faa64ba470f935ea3e7932feece3cd9fbadb90 (patch) | |
| tree | 79ec7d6cb2038b5920d5cca977a244fbb189923c /src/components | |
| parent | b137cdfca84cf68a2b8a620ba1c55337e88a0050 (diff) | |
| download | coinos-ui-a5faa64ba470f935ea3e7932feece3cd9fbadb90.tar.gz coinos-ui-a5faa64ba470f935ea3e7932feece3cd9fbadb90.zip | |
ark tests
Diffstat (limited to 'src/components')
| -rw-r--r-- | src/components/AmountField.svelte | 2 | ||||
| -rw-r--r-- | src/components/Lnurlp.svelte | 4 | ||||
| -rw-r--r-- | src/components/Lnurlw.svelte | 5 |
3 files changed, 7 insertions, 4 deletions
diff --git a/src/components/AmountField.svelte b/src/components/AmountField.svelte index 810e36f1..dc88089c 100644 --- a/src/components/AmountField.svelte +++ b/src/components/AmountField.svelte @@ -52,7 +52,7 @@ <div class="fixed bg-base-100/90 inset-0 overflow-y-auto h-full w-full z-50 max-w-lg mx-auto"> <div class="relative p-5 border shadow-lg rounded-md bg-base-100 space-y-5"> <h1 class="text-center text-2xl font-semibold">{label}</h1> - <Numpad bind:amount {currency} {rate} bind:submit={done} bind:element={numpad} /> + <Numpad bind:amount {currency} {rate} {locale} bind:submit={done} bind:element={numpad} /> <button bind:this={done} type="button" onclick={set} class="btn">Ok</button> </div> diff --git a/src/components/Lnurlp.svelte b/src/components/Lnurlp.svelte index cde26d86..757a2540 100644 --- a/src/components/Lnurlp.svelte +++ b/src/components/Lnurlp.svelte @@ -6,9 +6,11 @@ import Numpad from "$comp/Numpad.svelte"; import Spinner from "$comp/Spinner.svelte"; import { pin } from "$lib/store"; + import { loc } from "$lib/utils"; let { data, form, send = $bindable(), comment = $bindable() } = $props(); let currency = $derived(data.user.currency); + let locale = $derived(loc(data.user)); let minSendable = $derived(data.minSendable); let maxSendable = $derived(data.maxSendable); let commentAllowed = $derived(data.commentAllowed); @@ -39,7 +41,7 @@ <div class="text-red-600 text-center mb-5">{form.error}</div> {/if} - <Numpad bind:amount {rate} {currency} bind:submit={send} /> + <Numpad bind:amount {rate} {currency} {locale} bind:submit={send} /> <form action="?/pay" method="POST" use:enhance onsubmit={submit}> <input name="amount" value={amount} type="hidden" /> diff --git a/src/components/Lnurlw.svelte b/src/components/Lnurlw.svelte index a743bba5..0cc6f824 100644 --- a/src/components/Lnurlw.svelte +++ b/src/components/Lnurlw.svelte @@ -1,7 +1,7 @@ <script lang="ts"> import { tick } from "svelte"; import handler from "$lib/handler"; - import { sats, f, s, focus } from "$lib/utils"; + import { sats, f, s, focus, loc } from "$lib/utils"; import { t } from "$lib/translations"; import { enhance } from "$app/forms"; import Numpad from "$comp/Numpad.svelte"; @@ -11,6 +11,7 @@ let { data, form } = $props(); let currency = $derived(data.user.currency); + let locale = $derived(loc(data.user)); let username = $derived(data.user.username); let defaultDescription = $derived(data.defaultDescription); let minWithdrawable = $derived(data.minWithdrawable); @@ -56,7 +57,7 @@ {/if} </div> {:else} - <Numpad bind:amount {currency} {rate} /> + <Numpad bind:amount {currency} {rate} {locale} /> {/if} <form use:enhance={handler(toggle)} action="?/withdraw" method="POST" class="space-y-5"> |
