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}
|
||||
</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 && (
|
||||
|
Loading…
Reference in New Issue
Block a user