chore: temporarily remove PayPal components

This commit should be reverted while implementing PayPal integration
This commit is contained in:
Mrugesh Mohapatra
2019-11-19 19:19:17 +05:30
parent f30f8072b0
commit 0bd66eaf82

View File

@ -9,8 +9,7 @@ import {
Row,
Col,
ToggleButtonGroup,
ToggleButton,
Radio
ToggleButton
} from '@freecodecamp/react-bootstrap';
import { StripeProvider, Elements } from 'react-stripe-elements';
@ -202,37 +201,9 @@ class DonateForm extends Component {
renderDonationOptions() {
const { stripe, enableDonationSettingsPage } = this.props;
const {
donationAmount,
donationDuration,
paymentType,
processing
} = this.state;
const { donationAmount, donationDuration, paymentType } = this.state;
return (
<div>
{!processing ? (
<div>
<Radio
checked={paymentType === 'Card'}
name='payment-method'
onChange={this.handleSelectPaymentType}
value='Card'
>
Donate using a Credit/Debit Card.
</Radio>
<Radio
checked={paymentType === 'PayPal'}
// disable the paypal integration for now
disabled={true}
name='payment-method'
onChange={this.handleSelectPaymentType}
value='PayPal'
>
Donate using PayPal. (Coming soon)
</Radio>
<Spacer />
</div>
) : null}
{paymentType === 'Card' ? (
<StripeProvider stripe={stripe}>
<Elements>