From b0b438a40fc9d6c21548ecf654159c0b27d2e4f6 Mon Sep 17 00:00:00 2001 From: Ahmad Abdolsaheb Date: Tue, 10 Aug 2021 00:39:48 +0300 Subject: [PATCH] Revert "fix(client): remove wallets (#43159)" (#43163) This reverts commit 5a4c02addd5cdbc458f8de5e957c5564162d6c12. --- client/src/components/Donation/DonateForm.tsx | 31 ++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/client/src/components/Donation/DonateForm.tsx b/client/src/components/Donation/DonateForm.tsx index 420e5a1ba9..99374cd156 100644 --- a/client/src/components/Donation/DonateForm.tsx +++ b/client/src/components/Donation/DonateForm.tsx @@ -40,6 +40,7 @@ import DonateCompletion from './DonateCompletion'; import type { AddDonationData } from './PaypalButton'; import PaypalButton from './PaypalButton'; +import WalletsWrapper from './walletsButton'; import './Donation.css'; @@ -310,6 +311,11 @@ class DonateForm extends Component { isOneTime ? 'donate.confirm-2' : 'donate.confirm-3', { usd: donationAmount / 100 } )}:`; + + const walletlabel = `${t( + isOneTime ? 'donate.wallet-label' : 'donate.wallet-label-1', + { usd: donationAmount / 100 } + )}:`; const priorityTheme = defaultTheme ? defaultTheme : theme; return ( @@ -317,6 +323,14 @@ class DonateForm extends Component { {formlabel}
+ { renderModalForm() { const { donationAmount, donationDuration } = this.state; - const { handleProcessing, addDonation, defaultTheme, theme } = this.props; + const { handleProcessing, addDonation, defaultTheme, theme, t } = + this.props; + const priorityTheme = defaultTheme ? defaultTheme : theme; + const isOneTime = donationDuration === 'onetime'; + const walletlabel = `${t( + isOneTime ? 'donate.wallet-label' : 'donate.wallet-label-1', + { usd: donationAmount / 100 } + )}:`; return ( {this.getDonationButtonLabel()}:
+