Fix type issues (#4176)

This commit is contained in:
InfiniteStash
2023-10-16 05:34:54 +02:00
committed by GitHub
parent 90dfaf668b
commit 409f8fc70c
17 changed files with 41 additions and 86 deletions

View File

@@ -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) {