diff options
| author | Armand Philippot <git@armandphilippot.com> | 2023-11-02 15:36:21 +0100 |
|---|---|---|
| committer | Armand Philippot <git@armandphilippot.com> | 2023-11-11 18:15:27 +0100 |
| commit | 655be4404630a20ae4ca40c4af84afcc2e63557b (patch) | |
| tree | b69cf241cfb4df7042f50be6a56b7c5f4414edd0 /src/utils/hooks/index.ts | |
| parent | e2daf7f81789c54b23ade72bd164492e7304d375 (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/index.ts')
| -rw-r--r-- | src/utils/hooks/index.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'; |
