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:
parent
cb4b3d0bc9
commit
dce3b10f01
@ -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 (
|
||||
|
Loading…
Reference in New Issue
Block a user