1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-14 17:24:51 +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 { useOcean } from '@oceanprotocol/react'
import { ConfigHelper } from '@oceanprotocol/lib'
import { useEffect } from 'react'
import { getOceanConfig } from './wrapRootElement' import { getOceanConfig } from './wrapRootElement'
export function NetworkMonitor() { export function NetworkMonitor() {
@ -13,9 +11,11 @@ export function NetworkMonitor() {
switch (chainId) { switch (chainId) {
case 1: { case 1: {
network = 'mainnet' network = 'mainnet'
break
} }
case 4: { case 4: {
network = 'rinkeby' network = 'rinkeby'
break
} }
} }
const config = getOceanConfig(network) const config = getOceanConfig(network)