mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-09 12:21:13 +00:00
map upcoming in meta_resources in useMetaDetails hook
This commit is contained in:
parent
042e8b7ddb
commit
063908f123
2 changed files with 2 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ const VideosList = ({ className, metaResource }) => {
|
|||
);
|
||||
})
|
||||
.map((video, index) => (
|
||||
<Video {...video} upcoming={video.released.getTime() > (new Date).getTime()} key={index} />
|
||||
<Video {...video} key={index} />
|
||||
))
|
||||
}
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ const mapMetaDetailsStateWithCtx = (meta_details, ctx) => {
|
|||
:
|
||||
NaN
|
||||
),
|
||||
upcoming: new Date(video.released).getTime() > (new Date).getTime(),
|
||||
// TODO add watched and progress
|
||||
deepLinks: deepLinking.withVideo({
|
||||
video,
|
||||
|
|
|
|||
Loading…
Reference in a new issue