1
0
mirror of https://github.com/oceanprotocol/commons.git synced 2023-03-15 18:03:00 +01:00

fix category search from asset detail page

This commit is contained in:
Matthias Kretschmann 2019-04-04 13:34:03 +02:00
parent dbb779ef49
commit 2abeb466a5
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -24,7 +24,11 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
{base.copyrightHolder}
</h2>
<div className={styles.metaPrimaryData}>
<span title="Date created">
<span
title={`Date created, published on ${
base.datePublished
}`}
>
<Moment
date={base.dateCreated}
format="L"
@ -32,13 +36,11 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
/>
</span>
{base.categories ? (
{base.categories && (
// TODO: Make this link to search for respective category
<Link to={`/search?q=${base.categories[0]}`}>
<Link to={`/search?text=${base.categories[0]}`}>
{base.categories[0]}
</Link>
) : (
<Link to={'/search?q='}>Fake Category</Link>
)}
{base.files && (