Conditional rendering description

Two different cases: Rendering the description on the discover page before the genres and rendering the desc after the genres on the Details page
This commit is contained in:
kKaskak 2023-09-06 11:38:09 +03:00
parent a9683ba077
commit 5ddbf2e624

View file

@ -165,18 +165,18 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
}
{
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)}
/>
))
}
{