From b1e3a026bd9559874a06035ea1d463a8ae261277 Mon Sep 17 00:00:00 2001 From: Victor Creed Date: Fri, 15 Jan 2021 20:10:14 +0200 Subject: [PATCH] temp hide sales banner for mainnet --- src/app/containers/TradingPage/index.tsx | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/app/containers/TradingPage/index.tsx b/src/app/containers/TradingPage/index.tsx index 3c2a86914..54bc62eb2 100644 --- a/src/app/containers/TradingPage/index.tsx +++ b/src/app/containers/TradingPage/index.tsx @@ -7,7 +7,7 @@ import React from 'react'; import { Helmet } from 'react-helmet-async'; import { useTranslation } from 'react-i18next'; -import { useSelector, useDispatch } from 'react-redux'; +import { useSelector } from 'react-redux'; import { translations } from 'locales/i18n'; import { useInjectReducer, useInjectSaga } from 'utils/redux-injectors'; @@ -24,6 +24,7 @@ import { Footer } from '../../components/Footer'; import { TabType } from './types'; import { TradingPairDictionary } from '../../../utils/dictionaries/trading-pair-dictionary'; import { SaleBanner } from '../../components/SaleBanner'; +import { currentNetwork } from '../../../utils/classifiers'; const s = translations.tradingPage; interface Props {} @@ -32,12 +33,7 @@ export function TradingPage(props: Props) { useInjectReducer({ key: sliceKey, reducer: reducer }); useInjectSaga({ key: sliceKey, saga: tradingPageSaga }); - // eslint-disable-next-line @typescript-eslint/no-unused-vars const tradingPage = useSelector(selectTradingPage); - // eslint-disable-next-line @typescript-eslint/no-unused-vars - const dispatch = useDispatch(); - - // eslint-disable-next-line @typescript-eslint/no-unused-vars const { t } = useTranslation(); const symbol = TradingPairDictionary.get( @@ -52,7 +48,7 @@ export function TradingPage(props: Props) {
- + {currentNetwork === 'testnet' && }