From 655be4404630a20ae4ca40c4af84afcc2e63557b Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Thu, 2 Nov 2023 15:36:21 +0100 Subject: refactor(hooks): replace useInputAutofocus with useAutofocus hook * extract setTimeout logic using useTimeout * change condition to be a function * return a ref --- src/utils/hooks/use-autofocus/index.ts | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/utils/hooks/use-autofocus/index.ts (limited to 'src/utils/hooks/use-autofocus/index.ts') 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'; -- cgit v1.2.3