Add back cid.

This commit is contained in:
Thomas E Lackey 2020-06-11 15:32:03 -05:00
parent 6335bd2fe9
commit e08993d10f

View File

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