1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-11-13 16:54:53 +01:00

get app config the direct way

This commit is contained in:
Matthias Kretschmann 2020-08-11 15:47:31 +02:00
parent cb4b3d0bc9
commit dce3b10f01
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -2,8 +2,8 @@ import React, { ReactElement } from 'react'
import { OceanProvider } from '@oceanprotocol/react'
import { ConfigHelper } from '@oceanprotocol/lib'
import { web3ModalOpts } from '../utils/wallet'
import { useSiteMetadata } from '../hooks/useSiteMetadata'
import { NetworkMonitor } from './NetworkMonitor'
import appConfig from '../../app.config'
export function getOceanConfig(network: string): ConfigHelper {
return new ConfigHelper().getConfig(
@ -17,7 +17,6 @@ export default function wrapRootElement({
}: {
element: ReactElement
}): ReactElement {
const { appConfig } = useSiteMetadata()
const oceanInitialConfig = getOceanConfig(appConfig.network)
return (