diff --git a/src/components/@shared/ExplorerLink/index.tsx b/src/components/@shared/ExplorerLink/index.tsx index 44168d163..2df4716c6 100644 --- a/src/components/@shared/ExplorerLink/index.tsx +++ b/src/components/@shared/ExplorerLink/index.tsx @@ -31,7 +31,7 @@ export default function ExplorerLink({ href={`${url}/${path}`} title={`View on ${oceanConfig?.explorerUri}`} target="_blank" - rel="noreferrer" + rel="noopener noreferrer" className={`${styles.link} ${className || ''}`} > {children} diff --git a/src/components/@shared/FormInput/InputElement/AssetSelection/index.tsx b/src/components/@shared/FormInput/InputElement/AssetSelection/index.tsx index 4c2d81261..1543dfbee 100644 --- a/src/components/@shared/FormInput/InputElement/AssetSelection/index.tsx +++ b/src/components/@shared/FormInput/InputElement/AssetSelection/index.tsx @@ -94,7 +94,7 @@ export default function AssetSelection({ className={styles.link} href={`/asset/${asset.did}`} target="_blank" - rel="noreferrer" + rel="noopener noreferrer" > diff --git a/src/components/Asset/AssetActions/CalicaIntegration/index.tsx b/src/components/Asset/AssetActions/Calica/index.tsx similarity index 80% rename from src/components/Asset/AssetActions/CalicaIntegration/index.tsx rename to src/components/Asset/AssetActions/Calica/index.tsx index 0ee109f3f..f664530b3 100644 --- a/src/components/Asset/AssetActions/CalicaIntegration/index.tsx +++ b/src/components/Asset/AssetActions/Calica/index.tsx @@ -1,7 +1,7 @@ import { useAsset } from '@context/Asset' import React from 'react' import { useWeb3 } from '@context/Web3' -import { calicaUri } from 'app.config' +import { calicaUri } from '../../../../../app.config' export default function CalicaIntegration() { const { isOwner } = useAsset() const { accountId } = useWeb3() @@ -10,12 +10,10 @@ export default function CalicaIntegration() { Use Calica for revenue split - ) : ( - <> - ) + ) : null } diff --git a/src/components/Asset/AssetActions/Download.module.css b/src/components/Asset/AssetActions/Download.module.css index a52cf48b6..697854f7e 100644 --- a/src/components/Asset/AssetActions/Download.module.css +++ b/src/components/Asset/AssetActions/Download.module.css @@ -1,7 +1,6 @@ .consume { width: auto; margin-bottom: calc(var(--spacer) / 2); - margin-top: -1rem; } .info { diff --git a/src/components/Asset/AssetActions/index.module.css b/src/components/Asset/AssetActions/index.module.css index 0d3f546d5..59d7dc5b1 100644 --- a/src/components/Asset/AssetActions/index.module.css +++ b/src/components/Asset/AssetActions/index.module.css @@ -2,5 +2,4 @@ composes: box from '@shared/atoms/Box.module.css'; max-width: 35rem; margin: auto; - padding: 0; } diff --git a/src/components/Asset/AssetActions/index.tsx b/src/components/Asset/AssetActions/index.tsx index 62b02cbd9..fab368e2a 100644 --- a/src/components/Asset/AssetActions/index.tsx +++ b/src/components/Asset/AssetActions/index.tsx @@ -2,7 +2,6 @@ import React, { ReactElement, useState, useEffect } from 'react' import Compute from './Compute' import Download from './Download' import { FileInfo, LoggerInstance, Datatoken } from '@oceanprotocol/lib' -import Tabs, { TabsItem } from '@shared/atoms/Tabs' import { compareAsBN } from '@utils/numbers' import { useAsset } from '@context/Asset' import { useWeb3 } from '@context/Web3' @@ -16,7 +15,7 @@ import { useFormikContext } from 'formik' import { FormPublishData } from '@components/Publish/_types' import { getTokenBalanceFromSymbol } from '@utils/web3' import AssetStats from './AssetStats' -import CalicaIntegration from './CalicaIntegration' +import Calica from './Calica' export default function AssetActions({ asset @@ -133,34 +132,28 @@ export default function AssetActions({ } }, [balance, accountId, asset?.accessDetails, dtBalance]) - const UseContent = ( - <> - {isCompute ? ( - - ) : ( - - )} - - - - ) - - const tabs: TabsItem[] = [{ title: 'Use', content: UseContent }] - return ( <> - +
+ {isCompute ? ( + + ) : ( + + )} + +
+ ( diff --git a/src/components/Footer/Links.tsx b/src/components/Footer/Links.tsx index 6f37f8b0b..64c6f06e5 100644 --- a/src/components/Footer/Links.tsx +++ b/src/components/Footer/Links.tsx @@ -17,7 +17,13 @@ export default function Links() {
{content.links.map(({ name, url }) => ( - {' — '} diff --git a/src/components/Profile/Header/PublisherLinks.tsx b/src/components/Profile/Header/PublisherLinks.tsx index ca6f97b84..6fb441fba 100644 --- a/src/components/Profile/Header/PublisherLinks.tsx +++ b/src/components/Profile/Header/PublisherLinks.tsx @@ -59,7 +59,7 @@ export default function PublisherLinks({ href={getLinkData(link).href} key={link.key} target="_blank" - rel="noreferrer" + rel="noopener noreferrer" > {getLinkData(link).label}{' '} diff --git a/src/components/Profile/Header/index.tsx b/src/components/Profile/Header/index.tsx index a09165606..bcb14578b 100644 --- a/src/components/Profile/Header/index.tsx +++ b/src/components/Profile/Header/index.tsx @@ -13,7 +13,7 @@ const isDescriptionTextClamped = () => { const LinkExternal = ({ url, text }: { url: string; text: string }) => { return ( - + {text} ) diff --git a/src/components/Profile/History/ComputeJobs/Details.tsx b/src/components/Profile/History/ComputeJobs/Details.tsx index d33149302..52061f9cb 100644 --- a/src/components/Profile/History/ComputeJobs/Details.tsx +++ b/src/components/Profile/History/ComputeJobs/Details.tsx @@ -26,8 +26,7 @@ function Asset({