Use cid as target.

This commit is contained in:
Thomas E Lackey 2020-06-11 15:33:59 -05:00
parent e08993d10f
commit fbf650851a

View File

@ -18,7 +18,7 @@ const PackageLink = ({ config, type, pkg, text }) => {
// TODO(burdon): Pass in expected arg types.
if (typeof pkg === 'string') {
const ipfsUrl = getServiceUrl(config, 'ipfs.gateway', { path: `${pkg}` });
return <Link href={ipfsUrl} key={pkg} target='ipfs'>{text || pkg}</Link>;
return <Link href={ipfsUrl} key={pkg} target={pkg}>{text || pkg}</Link>;
}
// eslint-disable-next-line default-case
@ -35,7 +35,7 @@ const PackageLink = ({ config, type, pkg, text }) => {
key={cid}
href={ipfsUrl}
title={cid}
target='ipfs'
target={pkg}
>
{platform}/{arch}: {cid}
</Link>