mirror of
https://github.com/stashapp/stash.git
synced 2025-12-17 20:34:37 +03:00
Fix type issues (#4176)
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
import { useRef, useEffect } from "react";
|
||||
|
||||
const useFocus = () => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
const htmlElRef = useRef<any>();
|
||||
const htmlElRef = useRef<HTMLInputElement | null>(null);
|
||||
const setFocus = () => {
|
||||
const currentEl = htmlElRef.current;
|
||||
if (currentEl) {
|
||||
|
||||
Reference in New Issue
Block a user