mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 17:15:48 +00:00
deep links integrated in Discover
This commit is contained in:
parent
cbb1044986
commit
4809ce046f
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ const Discover = ({ urlParams, queryParams }) => {
|
|||
poster={metaItem.poster}
|
||||
posterShape={metaItem.posterShape}
|
||||
playIcon={selectedMetaItem === metaItem}
|
||||
href={metaItem.href}
|
||||
deepLinks={metaItem.deepLinks}
|
||||
data-index={index}
|
||||
onClick={metaItemOnClick}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
const React = require('react');
|
||||
const { useServices } = require('stremio/services');
|
||||
const { CONSTANTS, useModelState, comparatorWithPriorities } = require('stremio/common');
|
||||
const { CONSTANTS, deepLinking, useModelState, comparatorWithPriorities } = require('stremio/common');
|
||||
|
||||
const initDiscoverState = () => ({
|
||||
selected: null,
|
||||
|
|
@ -41,7 +41,7 @@ const mapDiscoverState = (discover) => {
|
|||
released: new Date(metaItem.released),
|
||||
description: metaItem.description,
|
||||
trailer: metaItem.trailer,
|
||||
href: `#/metadetails/${encodeURIComponent(metaItem.type)}/${encodeURIComponent(metaItem.id)}` // TODO this should redirect with videoId at some cases
|
||||
deepLinks: deepLinking.withMetaItem({ metaItem })
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue