diff options
| author | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-02-11 20:10:43 -0800 |
| commit | 56a04684c1fb77ea7b21afc6b0d2e1c4773906f6 (patch) | |
| tree | d6bc2557c56b93177bb14aa376847c6e123a4862 /src/components/Pinpad.svelte | |
| parent | 13466248004327e9a026cb89f94926f9b060d1c1 (diff) | |
| download | coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.tar.gz coinos-ui-56a04684c1fb77ea7b21afc6b0d2e1c4773906f6.zip | |
format
Diffstat (limited to 'src/components/Pinpad.svelte')
| -rw-r--r-- | src/components/Pinpad.svelte | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/src/components/Pinpad.svelte b/src/components/Pinpad.svelte index 15dbc53e..3e9c490b 100644 --- a/src/components/Pinpad.svelte +++ b/src/components/Pinpad.svelte @@ -24,11 +24,7 @@ let validate = (e) => { let k = e.key || e.code; if (k === "Escape") cancel(); - if ( - e.key.length <= 1 && - !(e.metaKey || e.ctrlKey || e.altKey) && - !(k >= "0" && k <= "9") - ) { + if (e.key.length <= 1 && !(e.metaKey || e.ctrlKey || e.altKey) && !(k >= "0" && k <= "9")) { if (e.preventDefault) e.preventDefault(); else e.returnValue = false; } @@ -43,9 +39,7 @@ }; </script> -<label - class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2" -> +<label class="input input-bordered border-primary input-lg rounded-2xl flex items-center gap-2"> {#if hide} <input onkeydown={validate} @@ -73,10 +67,7 @@ onclick={toggle} aria-label={hide ? "Show PIN" : "Hide PIN"} > - <iconify-icon - noobserver - icon={hide ? "ph:eye-slash-bold" : "ph:eye-bold"} - width="32" + <iconify-icon noobserver icon={hide ? "ph:eye-slash-bold" : "ph:eye-bold"} width="32" ></iconify-icon></button > </label> @@ -88,9 +79,7 @@ <Left /> </button> {:else} - <button type="button" class="btn" onclick={(e) => handleInput(e, value)} - >{value}</button - > + <button type="button" class="btn" onclick={(e) => handleInput(e, value)}>{value}</button> {/if} {/each} </div> |
