Fix TypeScript ref typings and lint errors
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user