lint cleanup

This commit is contained in:
Jason Hunter 2021-06-03 01:14:06 -04:00 committed by Blake Blackshear
parent b53a50cd54
commit dc8ba5239d
2 changed files with 2 additions and 24 deletions

View File

@ -28,7 +28,7 @@ export default function RecordingPlaylist({ camera, recordings, selectedDate, se
i === 0 ? 'border-t border-white border-opacity-50' : '' i === 0 ? 'border-t border-white border-opacity-50' : ''
}`} }`}
> >
{selectedDate == recording.date && selectedHour === item.hour ? ( {selectedDate === recording.date && selectedHour === item.hour ? (
<Fragment> <Fragment>
<div className="flex-1 text-green-500">{item.hour}:00</div> <div className="flex-1 text-green-500">{item.hour}:00</div>
<div className="flex-1 text-green-500">Now Playing</div> <div className="flex-1 text-green-500">Now Playing</div>
@ -113,7 +113,7 @@ export function EventCard({ camera, event, delay }) {
</div> </div>
</div> </div>
</div> </div>
<div className="w-6"></div> <div className="w-6" />
</div> </div>
</Link> </Link>
); );

View File

@ -1,5 +1,4 @@
import { h, Component } from 'preact'; import { h, Component } from 'preact';
import { useEffect, useRef } from 'preact/hooks';
import videojs from 'video.js'; import videojs from 'video.js';
import 'videojs-playlist'; import 'videojs-playlist';
import 'video.js/dist/video-js.css'; import 'video.js/dist/video-js.css';
@ -9,27 +8,6 @@ const defaultOptions = {
fluid: true, 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 (
// <div data-vjs-player>
// <video ref={playerRef} className="video-js vjs-default-skin" controls playsInline />
// {children}
// </div>
// );
// }
export default class VideoPlayer extends Component { export default class VideoPlayer extends Component {
componentDidMount() { componentDidMount() {
const { options, onReady = () => {} } = this.props; const { options, onReady = () => {} } = this.props;