diff --git a/src/app/containers/SalesPage/index.tsx b/src/app/containers/SalesPage/index.tsx index 87cd42e83..9b0eff01e 100644 --- a/src/app/containers/SalesPage/index.tsx +++ b/src/app/containers/SalesPage/index.tsx @@ -8,7 +8,7 @@ import React, { useEffect } from 'react'; import 'styles/sass/_genesis-sale.scss'; import { Helmet } from 'react-helmet-async'; import { useTranslation } from 'react-i18next'; -import { useDispatch, useSelector } from 'react-redux'; +import { useDispatch } from 'react-redux'; import { translations } from '../../../locales/i18n'; import { Header } from '../../components/Header'; import { useAccount, useIsConnected } from '../../hooks/useAccount'; @@ -25,21 +25,11 @@ import { sliceKey as salesSlice, reducer as salesReducer, } from './slice'; -import { SaleInfoBar } from './SaleInfoBar'; import { salesPageSaga } from './saga'; import { AddSoToNifty } from './AddSoToNifty'; import { AddSoToMetamask } from './AddToMetamask'; -import { Icon } from '@blueprintjs/core/lib/esm/components/icon/icon'; -import { currentNetwork } from '../../../utils/classifiers'; import { StyledButton } from '../../components/SalesButton'; import GetAccess from './GetAccess'; -import Screen1 from './screen1'; -import Screen2 from './screen2'; -import Screen3 from './screen3'; -import Screen4 from './screen4'; -import Screen5 from './screen5'; -import Screen6 from './screen6'; -import { selectSalesPage } from './selectors'; function detectInjectableWallet() { if (window.ethereum?.isNiftyWallet) { @@ -108,8 +98,6 @@ export function SalesPage() { dispatch(actions.connectChannel()); }, [dispatch]); - const state = useSelector(selectSalesPage); - return (
@@ -124,51 +112,10 @@ export function SalesPage() { className="container font-family-montserrat" style={{ maxWidth: '1730px', letterSpacing: 'normal' }} > - {Number(state.maxDeposit) === 0 ? ( - <> - SOV PUBLIC PRE-SALE WHITELIST} /> - - - ) : ( - <> - SOV GENESIS PRE-ORDER} /> - - - {currentNetwork === 'testnet' && ( -
-
-
- -
-
- This is testnet, not the actual sale. Do not send real - funds! -
-
-
- )} - {!isConnected ? ( - - ) : ( - <> - {Number(state.maxDeposit) !== 0 && ( - <> - {state.step === 1 && } - {state.step === 2 && } - {state.step === 3 && } - {state.step === 4 && } - {state.step === 5 && } - {state.step === 6 && } - - )} - - )} - - )} - + <> + SOV PUBLIC PRE-SALE WHITELIST} /> + +