diff options
| author | Adam Soltys <[email protected]> | 2025-03-12 15:19:52 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2025-03-12 15:19:52 -0700 |
| commit | d6d36b52f16d02bd112483ae9fe69876623935b6 (patch) | |
| tree | 859d89b06e9b40059546efe5eb496d46a731e5e7 /src/components/AmountField.svelte | |
| parent | 692217a3c8f3982e3b8357856d7c59335ad1316b (diff) | |
| download | coinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.tar.gz coinos-ui-d6d36b52f16d02bd112483ae9fe69876623935b6.zip | |
opt in to nwc notifications
Diffstat (limited to 'src/components/AmountField.svelte')
| -rw-r--r-- | src/components/AmountField.svelte | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/components/AmountField.svelte b/src/components/AmountField.svelte index abfc4d1e..cbe55e49 100644 --- a/src/components/AmountField.svelte +++ b/src/components/AmountField.svelte @@ -3,7 +3,15 @@ import { tick } from "svelte"; import Numpad from "$comp/Numpad.svelte"; - let { amount = $bindable(), desc, currency, rate, label, name } = $props(); + let { + amount = $bindable(), + none = $t("accounts.none"), + desc, + currency, + rate, + label, + name, + } = $props(); let setting = $state(); let set = () => { @@ -34,7 +42,7 @@ <div class="border-l-0 rounded-l-none pl-2 w-full p-4 border rounded-2xl text-left" > - {amount || $t("accounts.none")} + {amount || none} </div> <input type="hidden" {name} bind:value={amount} /> </button> |
