mirror of
https://github.com/Sonny93/my-links.git
synced 2025-12-10 15:35:35 +00:00
feat: recreate dashboard page from previous version
This commit is contained in:
9
inertia/hooks/use_auto_focus.tsx
Normal file
9
inertia/hooks/use_auto_focus.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { useCallback } from 'react';
|
||||
|
||||
export default function useAutoFocus() {
|
||||
return useCallback((inputElement: any) => {
|
||||
if (inputElement) {
|
||||
inputElement.focus();
|
||||
}
|
||||
}, []);
|
||||
}
|
||||
Reference in New Issue
Block a user