showHref str check, share hidden in discover

This commit is contained in:
abdev 2021-07-14 18:29:10 +05:30
parent 80f26f5794
commit 8a943e2888

View file

@ -210,16 +210,19 @@ const MetaPreview = ({ className, compact, name, logo, background, runtime, rele
null
}
{
<ActionButton
className={styles['action-button']}
icon={'ic_play'}
label={'Show'}
tabIndex={compact ? -1 : 0}
href={showHref}
/>
typeof showHref === 'string' && compact ?
<ActionButton
className={styles['action-button']}
icon={'ic_play'}
label={'Show'}
tabIndex={compact ? -1 : 0}
href={showHref}
/>
:
null
}
{
linksGroups.has(CONSTANTS.SHARE_LINK_CATEGORY) ?
linksGroups.has(CONSTANTS.SHARE_LINK_CATEGORY) && !compact ?
<React.Fragment>
<ActionButton
className={styles['action-button']}