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

fix search links

This commit is contained in:
Matthias Kretschmann 2019-03-26 16:07:16 +01:00
parent e01da4293c
commit 6eda278f1b
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -34,9 +34,11 @@ export default class AssetDetails extends PureComponent<AssetDetailsProps> {
</span>
{base.categories ? (
// TODO: Make this link to search for respective category
<Link to={'search?q='}>{base.categories[0]}</Link>
<Link to={`/search?q=${base.categories[0]}`}>
{base.categories[0]}
</Link>
) : (
<Link to={'search?q='}>Fake Category</Link>
<Link to={'/search?q='}>Fake Category</Link>
)}
<span>
{base.files ? base.files.length : 0} data files