aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/AmountField.svelte
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/AmountField.svelte')
-rw-r--r--src/components/AmountField.svelte23
1 files changed, 5 insertions, 18 deletions
diff --git a/src/components/AmountField.svelte b/src/components/AmountField.svelte
index 21c36631..b5c4261e 100644
--- a/src/components/AmountField.svelte
+++ b/src/components/AmountField.svelte
@@ -38,13 +38,10 @@
<button type="button" class="flex w-full" onclick={startSetting}>
<div class="p-4 border rounded-2xl rounded-r-none border-r-0 bg-base-200">
- <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"
- ></iconify-icon>
+ <iconify-icon noobserver icon="ph:lightning-fill" class="text-yellow-300"></iconify-icon>
</div>
- <div
- class="border-l-0 rounded-l-none pl-2 w-full p-4 border rounded-2xl text-left"
- >
+ <div class="border-l-0 rounded-l-none pl-2 w-full p-4 border rounded-2xl text-left">
{amount || none}
</div>
<input type="hidden" {name} bind:value={amount} />
@@ -52,24 +49,14 @@
</div>
{#if setting}
- <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="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} bind:submit={done} bind:element={numpad} />
- <button bind:this={done} type="button" onclick={set} class="btn"
- >Ok</button
- >
+ <button bind:this={done} type="button" onclick={set} class="btn">Ok</button>
</div>
</div>
{/if}