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
@@ -33,8 +33,8 @@ export const PlayerProvider: React.FC<PlayerProviderProps> = ({
initialMuted = false,
initialPlaybackRate = 1,
}) => {
const videoRef = useRef<HTMLVideoElement>(null)
const containerRef = useRef<HTMLDivElement>(null)
const videoRef = useRef<HTMLVideoElement | null>(null)
const containerRef = useRef<HTMLDivElement | null>(null)
const [videoState, setVideoState] = useState<VideoState>({
playing: false,