From 17121b20668fe8b69f6921dda08a608e2541a1f6 Mon Sep 17 00:00:00 2001 From: GG2015 Date: Fri, 22 Oct 2021 10:48:34 -0400 Subject: [PATCH] Wallet swap disabled (#107) * Disabled wallet swap tab. * Cleaned up UI since Swap is disabled. --- ui/page/buy/view.jsx | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ui/page/buy/view.jsx b/ui/page/buy/view.jsx index aa0d50cb2..5b1a6e9ae 100644 --- a/ui/page/buy/view.jsx +++ b/ui/page/buy/view.jsx @@ -1,5 +1,5 @@ // @flow -import * as ICONS from 'constants/icons'; +// import * as ICONS from 'constants/icons'; import React from 'react'; import Page from 'component/page'; import Card from 'component/common/card'; @@ -15,8 +15,8 @@ import Nag from 'component/common/nag'; import I18nMessage from 'component/i18nMessage'; import LbcSymbol from 'component/common/lbc-symbol'; import { SIMPLE_SITE } from 'config'; -import classnames from 'classnames'; -import WalletSwap from 'component/walletSwap'; +// import classnames from 'classnames'; +// import WalletSwap from 'component/walletSwap'; const MOONPAY_KEY = process.env.MOONPAY_SECRET_KEY; const COUNTRIES = Array.from( @@ -38,10 +38,10 @@ const COUNTRIES = Array.from( ) ); -const TAB = { +/* const TAB = { BUY: 'BUY', SWAP: 'SWAP', -}; +}; */ type Props = { receiveAddress: ?string, @@ -55,7 +55,7 @@ type Props = { export default function BuyPage(props: Props) { const { receiveAddress, gettingNewAddress, doGetNewAddress, email, user, doUserSetCountry } = props; const initialCountry = (user && user.country) || ''; - const [tab, setTab] = React.useState(TAB.BUY); + // const [tab, setTab] = React.useState(TAB.BUY); const [url, setUrl] = React.useState(); const [country, setCountry] = React.useState(initialCountry); const [showPurchaseScreen, setShowPurchaseScreen] = React.useState(false); @@ -116,10 +116,10 @@ export default function BuyPage(props: Props) { className="main--swap" backout={{ backoutLabel: __('Done'), - title: , + title: , }} > -
+ {/*
+
*/}
- {tab === TAB.SWAP && } - {tab === TAB.BUY && ( - <> + {/* tab === TAB.SWAP && */} + { + /* tab === TAB.BUY && */ <> {!user && (
@@ -230,7 +230,7 @@ export default function BuyPage(props: Props) { )} - )} + }
);