aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/Pin.svelte
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2023-01-25 23:01:55 -0800
committerAdam Soltys <[email protected]>2023-01-25 23:01:55 -0800
commit06d21d381123f5da01bc92aaff7c185f62e754ca (patch)
tree071975ffa4c30f81a7a25b78b4cfd5f85fdf7ea5 /src/components/Pin.svelte
parentd5b26e787a0c4c1b0a757f58b537f0a890cb9133 (diff)
downloadcoinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.tar.gz
coinos-ui-06d21d381123f5da01bc92aaff7c185f62e754ca.zip
sveltekit 1.0
Diffstat (limited to 'src/components/Pin.svelte')
-rw-r--r--src/components/Pin.svelte3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/Pin.svelte b/src/components/Pin.svelte
index efc1e81b..c7889aa9 100644
--- a/src/components/Pin.svelte
+++ b/src/components/Pin.svelte
@@ -1,4 +1,5 @@
<script>
+ import { focus } from "$lib/utils";
import { pin } from '$lib/store';
let pinCode = '';
@@ -12,7 +13,7 @@
<div class="fixed inset-0 bg-gray-600 bg-opacity-50 overflow-y-auto h-full w-full z-20">
<div class="relative top-1/3 mx-auto p-5 border w-96 shadow-lg rounded-md bg-white space-y-5">
<h1 class="text-center text-2xl font-semibold">Please enter your PIN</h1>
- <input bind:value={pinCode} autofocus />
+ <input bind:value={pinCode} use:focus />
<div class="w-full flex">
<button
type="submit"