mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
Default to test networks (#1224)
* limit to test networks * hide network list group when no networks in it * remove warning, hide announcement banner on empty warning
This commit is contained in:
parent
d1d24ef4d5
commit
7701652e89
@ -11,10 +11,10 @@ module.exports = {
|
||||
|
||||
// List of chainIds which metadata cache queries will return by default.
|
||||
// This preselects the Chains user preferences.
|
||||
chainIds: [1, 137, 56, 1285, 246],
|
||||
chainIds: [3, 4, 80001, 1287],
|
||||
|
||||
// List of all supported chainIds. Used to populate the Chains user preferences list.
|
||||
chainIdsSupported: [1, 3, 4, 137, 80001, 1287, 56, 2021000, 1285, 246],
|
||||
chainIdsSupported: [3, 4, 80001, 1287],
|
||||
|
||||
infuraProjectId: process.env.NEXT_PUBLIC_INFURA_PROJECT_ID || 'xxx',
|
||||
|
||||
|
@ -16,7 +16,7 @@
|
||||
}
|
||||
],
|
||||
"warning": {
|
||||
"main": "We are in beta. 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).",
|
||||
"main": "",
|
||||
"polygonPublish": "Only republish data sets with a pool from ETH Mainnet into Polygon/Matic if the liquidity is **less than or equal to 1000 OCEAN in the original pool**. Doing otherwise will lead to [purgatory](https://github.com/oceanprotocol/list-purgatory) for the data set in Polygon/Matic."
|
||||
},
|
||||
"announcement": {
|
||||
|
@ -10,7 +10,6 @@ import PrivacyPreferenceCenter from '../Privacy/PrivacyPreferenceCenter'
|
||||
import styles from './index.module.css'
|
||||
import { ToastContainer } from 'react-toastify'
|
||||
import { useRouter } from 'next/router'
|
||||
// import waves from '@oceanprotocol/art/waves/waves.png'
|
||||
import content from '../../../content/purgatory.json'
|
||||
|
||||
export default function App({
|
||||
@ -26,7 +25,9 @@ export default function App({
|
||||
|
||||
return (
|
||||
<div className={styles.app}>
|
||||
{router.pathname === '/' && <AnnouncementBanner text={warning.main} />}
|
||||
{router.pathname === '/' && warning.main !== '' && (
|
||||
<AnnouncementBanner text={warning.main} />
|
||||
)}
|
||||
<Header />
|
||||
|
||||
{isInPurgatory && (
|
||||
|
@ -13,10 +13,10 @@ export default function NetworksList({
|
||||
<NetworkItem key={chainId} chainId={chainId} />
|
||||
))
|
||||
|
||||
return (
|
||||
return content.length ? (
|
||||
<>
|
||||
<h4 className={styles.titleGroup}>{title}</h4>
|
||||
<div className={styles.networks}>{content}</div>
|
||||
</>
|
||||
)
|
||||
) : null
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user