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.
|
// 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} key={pkg} target='ipfs'>{text || pkg}</Link>;
|
return <Link href={ipfsUrl} key={pkg} target={pkg}>{text || pkg}</Link>;
|
||||||
}
|
}
|
||||||
|
|
||||||
// eslint-disable-next-line default-case
|
// eslint-disable-next-line default-case
|
||||||
@ -35,7 +35,7 @@ const PackageLink = ({ config, type, pkg, text }) => {
|
|||||||
key={cid}
|
key={cid}
|
||||||
href={ipfsUrl}
|
href={ipfsUrl}
|
||||||
title={cid}
|
title={cid}
|
||||||
target='ipfs'
|
target={pkg}
|
||||||
>
|
>
|
||||||
{platform}/{arch}: {cid}
|
{platform}/{arch}: {cid}
|
||||||
</Link>
|
</Link>
|
||||||
|
Loading…
Reference in New Issue
Block a user