mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
Update MetaPreview.js
This commit is contained in:
parent
d323e8d098
commit
a9683ba077
1 changed files with 25 additions and 19 deletions
|
|
@ -157,28 +157,34 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
|
|||
:
|
||||
null
|
||||
}
|
||||
{
|
||||
typeof description === 'string' && description.length > 0 ?
|
||||
<div className={styles['description-container']}>{description}</div>
|
||||
:
|
||||
null
|
||||
}
|
||||
{
|
||||
compact && typeof description === 'string' && description.length > 0 ?
|
||||
<div className={styles['description-container']}>{description}</div>
|
||||
:
|
||||
null
|
||||
}
|
||||
{
|
||||
Array.from(linksGroups.keys())
|
||||
.filter((category) => {
|
||||
return category !== CONSTANTS.IMDB_LINK_CATEGORY &&
|
||||
category !== CONSTANTS.SHARE_LINK_CATEGORY &&
|
||||
category !== CONSTANTS.WRITERS_LINK_CATEGORY;
|
||||
})
|
||||
.map((category, index) => (
|
||||
<MetaLinks
|
||||
key={index}
|
||||
className={styles['meta-links']}
|
||||
label={category}
|
||||
links={linksGroups.get(category)}
|
||||
/>
|
||||
.filter((category) => {
|
||||
return category !== CONSTANTS.IMDB_LINK_CATEGORY &&
|
||||
category !== CONSTANTS.SHARE_LINK_CATEGORY &&
|
||||
category !== CONSTANTS.WRITERS_LINK_CATEGORY;
|
||||
})
|
||||
.map((category, index) => (
|
||||
<MetaLinks
|
||||
key={index}
|
||||
className={styles['meta-links']}
|
||||
label={category}
|
||||
links={linksGroups.get(category)}
|
||||
/>
|
||||
))
|
||||
}
|
||||
}
|
||||
{
|
||||
!compact && typeof description === 'string' && description.length > 0 ?
|
||||
<div className={styles['description-container']}>{description}</div>
|
||||
:
|
||||
null
|
||||
}
|
||||
</div>
|
||||
<div className={styles['action-buttons-container']}>
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue