feat(donate): allow mutiple donations with warning (#39066)
This commit is contained in:
committed by
GitHub
parent
be4070a73d
commit
bcf9942263
@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
||||
import { bindActionCreators } from 'redux';
|
||||
import { connect } from 'react-redux';
|
||||
import { createSelector } from 'reselect';
|
||||
import { Grid, Row, Col } from '@freecodecamp/react-bootstrap';
|
||||
import { Grid, Row, Col, Alert } from '@freecodecamp/react-bootstrap';
|
||||
|
||||
import { stripePublicKey } from '../../config/env.json';
|
||||
import { Spacer, Loader } from '../components/helpers';
|
||||
@ -119,13 +119,25 @@ export class DonatePage extends Component {
|
||||
</Col>
|
||||
</Row>
|
||||
<Row>
|
||||
{isDonating ? (
|
||||
<Col md={6} mdOffset={3}>
|
||||
<DonateText />
|
||||
</Col>
|
||||
) : (
|
||||
<Fragment>
|
||||
<Col md={6}>
|
||||
<Row>
|
||||
<Col sm={10} smOffset={1} xs={12}>
|
||||
{isDonating ? (
|
||||
<Alert>
|
||||
<p>
|
||||
Thank you for being a supporter of freeCodeCamp. You
|
||||
currently have a recurring donation.
|
||||
</p>
|
||||
<br />
|
||||
<p>
|
||||
If you would like to make additional donations, those
|
||||
will help our nonprofit and our mission, too.
|
||||
</p>
|
||||
</Alert>
|
||||
) : null}
|
||||
</Col>
|
||||
</Row>
|
||||
<DonateForm
|
||||
enableDonationSettingsPage={this.enableDonationSettingsPage}
|
||||
handleProcessing={this.handleProcessing}
|
||||
@ -136,7 +148,6 @@ export class DonatePage extends Component {
|
||||
<DonateText />
|
||||
</Col>
|
||||
</Fragment>
|
||||
)}
|
||||
</Row>
|
||||
<Spacer />
|
||||
</Grid>
|
||||
|
Reference in New Issue
Block a user