forked from cerc-io/laconic-console
Use cid as target.
This commit is contained in:
parent
e08993d10f
commit
fbf650851a
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user