diff --git a/client/src/config/config.ts b/client/src/config.ts similarity index 100% rename from client/src/config/config.ts rename to client/src/config.ts diff --git a/client/src/context/UserProvider.tsx b/client/src/context/UserProvider.tsx index e003684..c7ff4cc 100644 --- a/client/src/context/UserProvider.tsx +++ b/client/src/context/UserProvider.tsx @@ -3,7 +3,7 @@ import Web3 from 'web3' import { Logger } from '@oceanprotocol/squid' import { User } from '.' import { provideOcean, requestFromFaucet, FaucetResponse } from '../ocean' -import { nodeHost, nodePort, nodeScheme } from '../config/config' +import { nodeHost, nodePort, nodeScheme } from '../config' const POLL_ACCOUNTS = 1000 // every 1s const POLL_NETWORK = POLL_ACCOUNTS * 60 // every 1 min diff --git a/client/src/hoc/withTracker.tsx b/client/src/hoc/withTracker.tsx index ea8653d..f976590 100644 --- a/client/src/hoc/withTracker.tsx +++ b/client/src/hoc/withTracker.tsx @@ -1,7 +1,7 @@ import React, { useEffect } from 'react' import ReactGA, { FieldsObject } from 'react-ga' import { RouteComponentProps } from 'react-router-dom' -import { analyticsId } from '../config/config' +import { analyticsId } from '../config' const withTracker =

( WrappedComponent: any, diff --git a/client/src/ocean.ts b/client/src/ocean.ts index 879d213..e752aec 100644 --- a/client/src/ocean.ts +++ b/client/src/ocean.ts @@ -22,7 +22,7 @@ import { secretStorePort, secretStoreScheme, verbose -} from './config/config' +} from './config' export async function provideOcean(web3provider: Web3) { const nodeUri = `${nodeScheme}://${nodeHost}:${nodePort}` diff --git a/client/src/routes/Publish/Files/index.tsx b/client/src/routes/Publish/Files/index.tsx index 9794584..f7a566b 100644 --- a/client/src/routes/Publish/Files/index.tsx +++ b/client/src/routes/Publish/Files/index.tsx @@ -6,7 +6,7 @@ import ItemForm from './ItemForm' import Item from './Item' import styles from './index.module.scss' -import { serviceHost, servicePort, serviceScheme } from '../../../config/config' +import { serviceHost, servicePort, serviceScheme } from '../../../config' interface File { url: string