diff --git a/content/publish/index.json b/content/publish/index.json index d35432fca..f7230d880 100644 --- a/content/publish/index.json +++ b/content/publish/index.json @@ -1,6 +1,5 @@ { "title": "Publish", "description": "Highlight the important features of your data set or algorithm to make it more discoverable and catch the interest of data consumers.", - "warning": "Publishing into a test network first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms).", - "tooltipNetwork": "Assets are published into the network your wallet is connected to. Switch your wallet's network to publish into another one." + "warning": "Publishing into a test network first is strongly recommended. Please familiarize yourself with [the market](https://oceanprotocol.com/technology/marketplaces), [the risks](https://blog.oceanprotocol.com/on-staking-on-data-in-ocean-market-3d8e09eb0a13), and the [Terms of Use](/terms)." } diff --git a/src/components/@shared/UnsupportedNetwork/NetworkOptions.module.css b/src/components/@shared/AvailableNetworks/NetworkOptions.module.css similarity index 100% rename from src/components/@shared/UnsupportedNetwork/NetworkOptions.module.css rename to src/components/@shared/AvailableNetworks/NetworkOptions.module.css diff --git a/src/components/@shared/UnsupportedNetwork/index.module.css b/src/components/@shared/AvailableNetworks/index.module.css similarity index 100% rename from src/components/@shared/UnsupportedNetwork/index.module.css rename to src/components/@shared/AvailableNetworks/index.module.css diff --git a/src/components/@shared/UnsupportedNetwork/index.tsx b/src/components/@shared/AvailableNetworks/index.tsx similarity index 86% rename from src/components/@shared/UnsupportedNetwork/index.tsx rename to src/components/@shared/AvailableNetworks/index.tsx index 814b55bfd..dfa67e52b 100644 --- a/src/components/@shared/UnsupportedNetwork/index.tsx +++ b/src/components/@shared/AvailableNetworks/index.tsx @@ -6,7 +6,7 @@ import useNetworkMetadata, { filterNetworksByType } from '@hooks/useNetworkMetadata' -export default function UnsuportedNetwork(): ReactElement { +export default function AvailableNetworks(): ReactElement { const { networksList } = useNetworkMetadata() const { appConfig } = useSiteMetadata() @@ -33,8 +33,8 @@ export default function UnsuportedNetwork(): ReactElement { return ( <> - You are currently on an unsupported network. To proceed with publishing, - please switch to one of our supported networks: + Assets are published to the network your wallet is conected to. These + networks are currently supported: {networkCategories.map( (networkCategory) => networkCategory.data.length > 0 && ( diff --git a/src/components/@shared/UnsupportedNetwork/networkOptions.tsx b/src/components/@shared/AvailableNetworks/networkOptions.tsx similarity index 100% rename from src/components/@shared/UnsupportedNetwork/networkOptions.tsx rename to src/components/@shared/AvailableNetworks/networkOptions.tsx diff --git a/src/components/Publish/Actions/index.tsx b/src/components/Publish/Actions/index.tsx index 0f404daf3..1a186bf82 100644 --- a/src/components/Publish/Actions/index.tsx +++ b/src/components/Publish/Actions/index.tsx @@ -7,7 +7,7 @@ import { wizardSteps } from '../_constants' import SuccessConfetti from '@shared/SuccessConfetti' import { useWeb3 } from '@context/Web3' import Tooltip from '@shared/atoms/Tooltip' -import UnsuportedNetwork from '@shared/UnsupportedNetwork' +import AvailableNetworks from '@shared/AvailableNetworks' export default function Actions({ scrollToRef, @@ -83,7 +83,7 @@ export default function Actions({ ) : !isSupportedOceanNetwork ? ( } + content={} className={styles.errorTooltip} >