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:
parent
dbb779ef49
commit
2abeb466a5
@ -24,7 +24,11 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
|
|||||||
{base.copyrightHolder}
|
{base.copyrightHolder}
|
||||||
</h2>
|
</h2>
|
||||||
<div className={styles.metaPrimaryData}>
|
<div className={styles.metaPrimaryData}>
|
||||||
<span title="Date created">
|
<span
|
||||||
|
title={`Date created, published on ${
|
||||||
|
base.datePublished
|
||||||
|
}`}
|
||||||
|
>
|
||||||
<Moment
|
<Moment
|
||||||
date={base.dateCreated}
|
date={base.dateCreated}
|
||||||
format="L"
|
format="L"
|
||||||
@ -32,13 +36,11 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
|
|||||||
/>
|
/>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
{base.categories ? (
|
{base.categories && (
|
||||||
// TODO: Make this link to search for respective category
|
// 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]}
|
{base.categories[0]}
|
||||||
</Link>
|
</Link>
|
||||||
) : (
|
|
||||||
<Link to={'/search?q='}>Fake Category</Link>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{base.files && (
|
{base.files && (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user