Fix TypeScript ref typings and lint errors

This commit is contained in:
Mert Uyanık
2025-10-29 09:32:44 +03:00
parent 53de7f8658
commit 3ccdd55bdf
6 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -32,8 +32,8 @@ export const ControlsLayer: React.FC<ControlsLayerProps> = ({
usePlayerContext()
const [isPointerOver, setIsPointerOver] = useState(false)
const [lastInteraction, setLastInteraction] = useState<number>(0)
const hideTimeoutRef = useRef<number>()
const containerRef = useRef<HTMLDivElement>(null)
const hideTimeoutRef = useRef<number | undefined>(undefined)
const containerRef = useRef<HTMLDivElement | null>(null)
const lastClickTimeRef = useRef<number>(0)
const isMenuOpen =
uiState.settingsOpen ||