Moving main ThemeContext.Provider into Theme module. Using live elapsed timers on Downloads page.

This commit is contained in:
Roland 2022-09-28 09:38:05 -06:00
parent 854cdf597a
commit fdfd1e98fc
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93
9 changed files with 163 additions and 91 deletions

View file

@ -22,10 +22,11 @@ import {deleteVideos} from "../api";
export function VideoWrapper() {
const {videoId} = useParams();
const {videoFile, prevFile, nextFile} = useVideo(videoId);
const {videoFile, prevFile, nextFile, setFavorite} = useVideo(videoId);
scrollToTop();
return <VideoPage videoFile={videoFile} prevFile={prevFile} nextFile={nextFile} autoplay={true}/>
return <VideoPage videoFile={videoFile} prevFile={prevFile} nextFile={nextFile}
setFavorite={setFavorite} autoplay={true}/>
}
function Videos({filter}) {