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/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/hooks/index.ts') diff --git a/src/utils/hooks/index.ts b/src/utils/hooks/index.ts index f1063ce..9181b6a 100644 --- a/src/utils/hooks/index.ts +++ b/src/utils/hooks/index.ts @@ -1,12 +1,12 @@ export * from './use-ackee'; export * from './use-article'; +export * from './use-autofocus'; export * from './use-boolean'; export * from './use-breadcrumb'; export * from './use-comments'; export * from './use-data-from-api'; export * from './use-github-api'; export * from './use-headings-tree'; -export * from './use-input-autofocus'; export * from './use-is-mounted'; export * from './use-local-storage'; export * from './use-match-media'; -- cgit v1.2.3