diff --git a/tubearchivist/www/src/components/VideoList.tsx b/tubearchivist/www/src/components/VideoList.tsx index 21b66a8..e6d0d49 100644 --- a/tubearchivist/www/src/components/VideoList.tsx +++ b/tubearchivist/www/src/components/VideoList.tsx @@ -1,10 +1,11 @@ -import { Datum, Videos } from "../types/video"; import NextImage from "next/image"; -import ReactPlayer from "react-player/file"; import { useState } from "react"; -import IconPlay from "../images/icon-play.svg"; +import ReactPlayer from "react-player/file"; import IconClose from "../images/icon-close.svg"; +import IconPlay from "../images/icon-play.svg"; +import { TA_BASE_URL } from "../lib/constants"; import { formatNumbers } from "../lib/utils"; +import { Datum, Videos } from "../types/video"; export const VideoList = ({ videos }: { videos: Videos }) => { const [selectedVideoUrl, setSelectedVideoUrl] = useState(); @@ -162,89 +163,93 @@ export const VideoList = ({ videos }: { videos: Videos }) => {
{videos && - videos?.data?.map((video) => ( -
- handleSelectedVideo(video)} - > -
-
- - {/* {% if video.source.player.progress %} */} -
- {/* {% else %} */} -
- {/* {% endif %} */} -
-
- -
-
-
-
- -
- ))} + ); + })}