Skip to content

Commit

Permalink
Merge pull request #205 from DistributedCollective/development
Browse files Browse the repository at this point in the history
temp hide sales banner for mainnet
  • Loading branch information
creed-victor authored Jan 15, 2021
2 parents 8a81853 + b1e3a02 commit 09d60f2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/app/containers/TradingPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -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 {}
Expand All @@ -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(
Expand All @@ -52,7 +48,7 @@ export function TradingPage(props: Props) {
</Helmet>
<Header />
<div className="container mt-5">
<SaleBanner />
{currentNetwork === 'testnet' && <SaleBanner />}
<div className="row">
<div
className={`mb-5 mb-lg-0 col-12 col-lg-6 order-lg-1 d-none ${
Expand Down

1 comment on commit 09d60f2

@vercel
Copy link

@vercel vercel bot commented on 09d60f2 Jan 15, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.