From dce3b10f0172925b154def4d5c04f13c379f7ffe Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 11 Aug 2020 15:47:31 +0200 Subject: [PATCH] get app config the direct way --- src/helpers/wrapRootElement.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/helpers/wrapRootElement.tsx b/src/helpers/wrapRootElement.tsx index 63cfacbbe..62d217688 100644 --- a/src/helpers/wrapRootElement.tsx +++ b/src/helpers/wrapRootElement.tsx @@ -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 (