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
+1 -1
View File
@@ -6,7 +6,7 @@ import './VolumeControl.css'
export const VolumeControl: React.FC = () => {
const { videoState, setVolume, toggleMute } = usePlayerContext()
const [showSlider, setShowSlider] = useState(false)
const timeoutRef = useRef<number>()
const timeoutRef = useRef<number | undefined>(undefined)
const handleMouseEnter = useCallback(() => {
if (timeoutRef.current) {