Temporarily disable Buy due to Moonpay integration down

This commit is contained in:
infinite-persistence 2022-01-04 09:36:11 +08:00
parent 1cc2132a28
commit 7a4866b269
No known key found for this signature in database
GPG key ID: B9C3252EDC3D0AA0
2 changed files with 19 additions and 0 deletions

View file

@ -2223,5 +2223,6 @@
"Show more upcoming livestreams": "Show more upcoming livestreams", "Show more upcoming livestreams": "Show more upcoming livestreams",
"Show less upcoming livestreams": "Show less upcoming livestreams", "Show less upcoming livestreams": "Show less upcoming livestreams",
"Schedule Livestream": "Schedule Livestream", "Schedule Livestream": "Schedule Livestream",
"Sorry, the service is currently unavailable.": "Sorry, the service is currently unavailable.",
"--end--": "--end--" "--end--": "--end--"
} }

View file

@ -18,6 +18,8 @@ import { SIMPLE_SITE } from 'config';
// import classnames from 'classnames'; // import classnames from 'classnames';
// import WalletSwap from 'component/walletSwap'; // import WalletSwap from 'component/walletSwap';
const MOONPAY_DOWN = true;
const MOONPAY_KEY = process.env.MOONPAY_SECRET_KEY; const MOONPAY_KEY = process.env.MOONPAY_SECRET_KEY;
const COUNTRIES = Array.from( const COUNTRIES = Array.from(
new Set( new Set(
@ -110,6 +112,22 @@ export default function BuyPage(props: Props) {
</I18nMessage> </I18nMessage>
); );
if (MOONPAY_DOWN) {
return (
<Page
noSideNavigation
className="main--swap"
backout={{ backoutLabel: __('Done'), title: <LbcSymbol prefix={__('Buy')} size={28} /> }}
>
<Card
title={title}
subtitle={subtitle}
nag={<Nag relative type="helpful" message={__('Sorry, the service is currently unavailable.')} />}
/>
</Page>
);
}
return ( return (
<Page <Page
noSideNavigation noSideNavigation