mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
restore asset teaser compute label
This commit is contained in:
parent
2e63b868d9
commit
9aa921c22c
@ -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}>
|
||||
|
Loading…
Reference in New Issue
Block a user