1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
This commit is contained in:
mihaisc 2020-08-11 15:40:15 +03:00
parent 3c1c6418d9
commit cb4b3d0bc9

View File

@ -1,7 +1,5 @@
import React from 'react'
import React, { useEffect } from 'react'
import { useOcean } from '@oceanprotocol/react'
import { ConfigHelper } from '@oceanprotocol/lib'
import { useEffect } from 'react'
import { getOceanConfig } from './wrapRootElement'
export function NetworkMonitor() {
@ -13,9 +11,11 @@ export function NetworkMonitor() {
switch (chainId) {
case 1: {
network = 'mainnet'
break
}
case 4: {
network = 'rinkeby'
break
}
}
const config = getOceanConfig(network)