remove now playing because I do not handle autoadvance properly yet

This commit is contained in:
Jason Hunter 2021-06-03 01:41:45 -04:00 committed by Blake Blackshear
parent dc8ba5239d
commit a3cfbb6722

View File

@ -28,18 +28,11 @@ 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 ? (
<Fragment>
<div className="flex-1 text-green-500">{item.hour}:00</div>
<div className="flex-1 text-green-500">Now Playing</div>
</Fragment>
) : (
<div className="flex-1"> <div className="flex-1">
<Link href={`/recordings/${camera}/${recording.date}/${item.hour}`} type="text"> <Link href={`/recordings/${camera}/${recording.date}/${item.hour}`} type="text">
{item.hour}:00 {item.hour}:00
</Link> </Link>
</div> </div>
)}
<div className="flex-1 text-right">{item.events.length} Events</div> <div className="flex-1 text-right">{item.events.length} Events</div>
</div> </div>
{item.events.map((event) => ( {item.events.map((event) => (