From dc8ba5239d2716d19764784644a3d5ad405d5a46 Mon Sep 17 00:00:00 2001 From: Jason Hunter Date: Thu, 3 Jun 2021 01:14:06 -0400 Subject: [PATCH] lint cleanup --- web/src/components/RecordingPlaylist.jsx | 4 ++-- web/src/components/VideoPlayer.jsx | 22 ---------------------- 2 files changed, 2 insertions(+), 24 deletions(-) diff --git a/web/src/components/RecordingPlaylist.jsx b/web/src/components/RecordingPlaylist.jsx index 567c9f224..1d4a4fe3c 100644 --- a/web/src/components/RecordingPlaylist.jsx +++ b/web/src/components/RecordingPlaylist.jsx @@ -28,7 +28,7 @@ export default function RecordingPlaylist({ camera, recordings, selectedDate, se i === 0 ? 'border-t border-white border-opacity-50' : '' }`} > - {selectedDate == recording.date && selectedHour === item.hour ? ( + {selectedDate === recording.date && selectedHour === item.hour ? (
{item.hour}:00
Now Playing
@@ -113,7 +113,7 @@ export function EventCard({ camera, event, delay }) { -
+
); diff --git a/web/src/components/VideoPlayer.jsx b/web/src/components/VideoPlayer.jsx index 0dc2f2d60..31e19eb30 100644 --- a/web/src/components/VideoPlayer.jsx +++ b/web/src/components/VideoPlayer.jsx @@ -1,5 +1,4 @@ import { h, Component } from 'preact'; -import { useEffect, useRef } from 'preact/hooks'; import videojs from 'video.js'; import 'videojs-playlist'; import 'video.js/dist/video-js.css'; @@ -9,27 +8,6 @@ const defaultOptions = { fluid: true, }; -// export default function VideoPlayer({ children, options, onReady = () => {} }) { -// const playerRef = useRef(null); -// useEffect(() => { -// if (playerRef.current) { -// const player = videojs(playerRef.current, { ...defaultOptions, ...options }, () => { -// onReady(player); -// }); -// return () => { -// player.dispose(); -// }; -// } -// }, [options, onReady]); - -// return ( -//
-//
-// ); -// } - export default class VideoPlayer extends Component { componentDidMount() { const { options, onReady = () => {} } = this.props;