1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-30 05:41:41 +02:00

restore asset teaser compute label

This commit is contained in:
Matthias Kretschmann 2020-08-05 13:32:37 +02:00
parent 2e63b868d9
commit 9aa921c22c
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -21,6 +21,7 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({
const { name } = metadata.main
const { description } = metadata.additionalInformation
const isCompute = Boolean(ddo.findServiceByType('compute'))
const { getBestPrice } = useMetadata(ddo.id)
const [price, setPrice] = useState<string>()
@ -37,9 +38,7 @@ const AssetTeaser: React.FC<AssetTeaserProps> = ({
<article className={styles.teaser}>
<Link to={`/asset/${ddo.id}`} className={styles.link}>
<h1 className={styles.title}>{name}</h1>
{/* {access === 'Compute' && (
<div className={styles.accessLabel}>{access}</div>
)} */}
{isCompute && <div className={styles.accessLabel}>Compute</div>}
<div className={styles.content}>
<Dotdotdot tagName="p" clamp={3}>