From f0e335b4dae061f9db0dc628866913236861c885 Mon Sep 17 00:00:00 2001 From: Max Berman Date: Wed, 8 Jan 2020 10:46:31 +0100 Subject: [PATCH] wip --- client/src/components/molecules/NetworkSwitcher.tsx | 12 ++++++++---- client/src/context/UserProvider.tsx | 2 ++ 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/client/src/components/molecules/NetworkSwitcher.tsx b/client/src/components/molecules/NetworkSwitcher.tsx index 9cfbfe9..1d8b87c 100644 --- a/client/src/components/molecules/NetworkSwitcher.tsx +++ b/client/src/components/molecules/NetworkSwitcher.tsx @@ -56,8 +56,15 @@ export function NetworkSwitcher() { {Object.keys(CONNECTIONS).map((networkName, i) => (
  • switchNetwork(networkName)} + style={{ + cursor: 'pointer', + color: + userContext.network.toUpperCase() === + networkName.toUpperCase() + ? 'red' + : '' + }} > {networkName} @@ -65,9 +72,6 @@ export function NetworkSwitcher() {
  • ))} - - {userContext.network} - ) } diff --git a/client/src/context/UserProvider.tsx b/client/src/context/UserProvider.tsx index 07df85e..1125830 100644 --- a/client/src/context/UserProvider.tsx +++ b/client/src/context/UserProvider.tsx @@ -16,6 +16,8 @@ console.log({ oceanConfig }) const { nodeUri } = oceanConfig +console.log(oceanConfig) + const POLL_ACCOUNTS = 1000 // every 1s const POLL_NETWORK = POLL_ACCOUNTS * 60 // every 1 min const DEFAULT_WEB3 = new Web3(new Web3.providers.HttpProvider(nodeUri)) // default web3