Add back cid.
This commit is contained in:
parent
6335bd2fe9
commit
e08993d10f
@ -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>
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user