diff --git a/src/pages/Wallet/ExchangeSection.js b/src/pages/Wallet/ExchangeSection.js deleted file mode 100644 index 7a43e47..0000000 --- a/src/pages/Wallet/ExchangeSection.js +++ /dev/null @@ -1,85 +0,0 @@ -import React, { useContext, useState } from 'react'; -import { StyleSheet } from 'react-native'; -import { AppContext } from '../../AppProvider'; -import { useNavigation } from '../../routes/hooks'; -import { withTranslation } from '../../hooks/useTranslations'; -import { ROUTES_MAP as APP_ROUTES_MAP } from '../../routes/app-routes'; -import { ROUTES_MAP } from './routes'; -import theme from '../../component-library/Global/theme'; -import GlobalLayout from '../../component-library/Global/GlobalLayout'; -import GlobalBackTitle from '../../component-library/Global/GlobalBackTitle'; -import GlobalButton from '../../component-library/Global/GlobalButton'; -import AvatarImage from '../../component-library/Image/AvatarImage'; -import CardButton from '../../component-library/CardButton/CardButton'; -import GlobalPadding from '../../component-library/Global/GlobalPadding'; -import GlobalText from '../../component-library/Global/GlobalText'; -import Header from '../../component-library/Layout/Header'; -import IconBridge from '../../assets/images/IconBridge.png'; - -const styles = StyleSheet.create({ - cardBtn: { - backgroundColor: theme.colors.bgLight, - }, -}); - -const ExchangeSection = ({ t }) => { - const navigate = useNavigation(); - const [{ activeBlockchainAccount }, {}] = useContext(AppContext); - const [optSelected, setOptSelected] = useState(0); - - const goToBack = () => { - navigate(APP_ROUTES_MAP.WALLET); - }; - - const goToSwapRoute = type => - type === 0 - ? navigate(ROUTES_MAP.WALLET_SWAP) - : navigate(ROUTES_MAP.WALLET_BRIDGE); - return ( - - -
- - - - {t('swap.choose_type')} - - - setOptSelected(0)} - title={t('swap.same_blockchain')} - active={optSelected === 0} - actions={[ - , - ]} - /> - - setOptSelected(1)} - title={t('swap.other_blockchain')} - active={optSelected === 1} - actions={[ - , - ]} - /> - - - - goToSwapRoute(optSelected)} - /> - - - ); -}; - -export default withTranslation()(ExchangeSection); diff --git a/src/pages/Wallet/routes.js b/src/pages/Wallet/routes.js index f1a1d54..d4b0f53 100644 --- a/src/pages/Wallet/routes.js +++ b/src/pages/Wallet/routes.js @@ -4,7 +4,6 @@ import TransactionsPage from '../Transactions/TransactionsPage'; import SettingsSection from '../Settings'; import NftsSection from '../Nfts'; import BridgePage from './BridgePage'; -import ExchangeSection from './ExchangeSection'; import IconWallet from '../../assets/images/IconWallet.png'; import IconNFT from '../../assets/images/IconNFT.png'; @@ -22,7 +21,6 @@ export const ROUTES_MAP = { WALLET_TRANSACTIONS: 'WALLET_TRANSACTIONS', WALLET_SETTINGS: 'WALLET_SETTINGS', WALLET_BRIDGE: 'WALLET_BRIDGE', - WALLET_EXCHANGE: 'WALLET_EXCHANGE', }; const NFTS_ROUTES = require('../Nfts/routes').default; @@ -64,15 +62,6 @@ const routes = [ Component: SwapPage, default: false, }, - { - key: ROUTES_MAP.WALLET_EXCHANGE, - name: 'Exchange', - path: 'exchange', - route: '/wallet/exchange', - Component: ExchangeSection, - default: false, - icon: IconSwap, - }, { key: ROUTES_MAP.WALLET_TRANSACTIONS, name: 'Transactions',