Added User List table

This commit is contained in:
2026-01-20 22:21:06 +07:00
parent 1423d8af53
commit e02564b5cd
45 changed files with 1866 additions and 292 deletions

View File

@@ -0,0 +1,14 @@
import { useCallback, useRef } from 'react';
function usePreventAutoFocus<E extends HTMLElement = HTMLDivElement>() {
const ref = useRef<E>(null);
const onOpenAutoFocus = useCallback((event: Event) => {
event.preventDefault();
ref.current?.focus({ preventScroll: true });
}, []);
return { ref, onOpenAutoFocus, tabIndex: -1 as const };
}
export default usePreventAutoFocus;