From e5e5dd82747978b4f5aeda8a73d4e0229ea205a8 Mon Sep 17 00:00:00 2001 From: Alejandro Cavallero Date: Fri, 6 Jul 2018 12:13:26 -0300 Subject: [PATCH] Hide unsupported tabs by RSK (#2011) * Hides unsupported tabs by RSK * Allows swap --- common/features/config/networks/static/reducer.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/common/features/config/networks/static/reducer.ts b/common/features/config/networks/static/reducer.ts index b3a07312..edb903e2 100644 --- a/common/features/config/networks/static/reducer.ts +++ b/common/features/config/networks/static/reducer.ts @@ -29,6 +29,7 @@ import { } from 'config/dpaths'; import { makeExplorer } from 'utils/helpers'; import { StaticNetworksState } from './types'; +import { TAB } from 'components/Header/components/constants'; const testnetDefaultGasPrice = { min: 0.1, @@ -393,7 +394,8 @@ export const STATIC_NETWORKS_INITIAL_STATE: StaticNetworksState = { min: 0.183, max: 1.5, initial: 0.183 - } + }, + unsupportedTabs: [TAB.ENS] }, RSK_TESTNET: { @@ -419,7 +421,8 @@ export const STATIC_NETWORKS_INITIAL_STATE: StaticNetworksState = { min: 0.183, max: 1.5, initial: 0.183 - } + }, + unsupportedTabs: [TAB.ENS] }, GO: {