aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/hooks/use-autofocus/index.ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2023-11-02 15:36:21 +0100
committerArmand Philippot <git@armandphilippot.com>2023-11-11 18:15:27 +0100
commit655be4404630a20ae4ca40c4af84afcc2e63557b (patch)
treeb69cf241cfb4df7042f50be6a56b7c5f4414edd0 /src/utils/hooks/use-autofocus/index.ts
parente2daf7f81789c54b23ade72bd164492e7304d375 (diff)
refactor(hooks): replace useInputAutofocus with useAutofocus hook
* extract setTimeout logic using useTimeout * change condition to be a function * return a ref
Diffstat (limited to 'src/utils/hooks/use-autofocus/index.ts')
-rw-r--r--src/utils/hooks/use-autofocus/index.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/utils/hooks/use-autofocus/index.ts b/src/utils/hooks/use-autofocus/index.ts
new file mode 100644
index 0000000..bb23089
--- /dev/null
+++ b/src/utils/hooks/use-autofocus/index.ts
@@ -0,0 +1 @@
+export * from './use-autofocus';