mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 14:52:13 +00:00
MetaRow redirect to library
This commit is contained in:
parent
3252b8e829
commit
647586c2ba
1 changed files with 5 additions and 4 deletions
|
|
@ -14,7 +14,7 @@ const MetaRow = ({ className, title, message, items, itemComponent, deepLinks })
|
|||
return (
|
||||
<div className={classnames(className, styles['meta-row-container'])}>
|
||||
{
|
||||
(typeof title === 'string' && title.length > 0) || (deepLinks && typeof deepLinks.discover === 'string') ?
|
||||
(typeof title === 'string' && title.length > 0) || (deepLinks && (typeof deepLinks.discover === 'string' || typeof deepLinks.library === 'string')) ?
|
||||
<div className={styles['header-container']}>
|
||||
{
|
||||
typeof title === 'string' && title.length > 0 ?
|
||||
|
|
@ -23,8 +23,8 @@ const MetaRow = ({ className, title, message, items, itemComponent, deepLinks })
|
|||
null
|
||||
}
|
||||
{
|
||||
deepLinks && typeof deepLinks.discover === 'string' ?
|
||||
<Button className={styles['see-all-container']} title={'SEE ALL'} href={deepLinks.discover}>
|
||||
deepLinks && (typeof deepLinks.discover === 'string' || typeof deepLinks.library === 'string') ?
|
||||
<Button className={styles['see-all-container']} title={'SEE ALL'} href={deepLinks.discover || deepLinks.library}>
|
||||
<div className={styles['label']}>SEE ALL</div>
|
||||
<Icon className={styles['icon']} icon={'ic_arrow_thin_right'} />
|
||||
</Button>
|
||||
|
|
@ -72,7 +72,8 @@ MetaRow.propTypes = {
|
|||
})),
|
||||
itemComponent: PropTypes.elementType,
|
||||
deepLinks: PropTypes.shape({
|
||||
discover: PropTypes.string
|
||||
discover: PropTypes.string,
|
||||
library: PropTypes.string
|
||||
})
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue