From bcf99422638d486b3b9d4a3344abb7a62ebebc92 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Sat, 13 Jun 2020 17:32:29 +0530 Subject: [PATCH] feat(donate): allow mutiple donations with warning (#39066) --- client/src/pages/donate.js | 45 ++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 17 deletions(-) diff --git a/client/src/pages/donate.js b/client/src/pages/donate.js index a60e98b3fc..04115bdb3d 100644 --- a/client/src/pages/donate.js +++ b/client/src/pages/donate.js @@ -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,24 +119,35 @@ export class DonatePage extends Component { - {isDonating ? ( - + + + + + {isDonating ? ( + + + Thank you for being a supporter of freeCodeCamp. You + currently have a recurring donation. + + + + If you would like to make additional donations, those + will help our nonprofit and our mission, too. + + + ) : null} + + + + + - ) : ( - - - - - - - - - )} +
+ Thank you for being a supporter of freeCodeCamp. You + currently have a recurring donation. +
+ If you would like to make additional donations, those + will help our nonprofit and our mission, too. +