diff --git a/client/src/components/Donation/DonationModal.js b/client/src/components/Donation/DonationModal.js index c7a9bbc748e958..fdde372a5e7654 100644 --- a/client/src/components/Donation/DonationModal.js +++ b/client/src/components/Donation/DonationModal.js @@ -10,6 +10,7 @@ import { blockNameify } from '../../../utils/blockNameify'; import Heart from '../../assets/icons/Heart'; import Cup from '../../assets/icons/Cup'; import MinimalDonateForm from './MinimalDonateForm'; +import { modalDefaultStateConfig } from '../../../../config/donation-settings'; import { closeDonationModal, @@ -90,7 +91,19 @@ function DonateModal({ }); } - const donationText = Become an annual supporter of our nonprofit.; + const durationToText = donationDuration => { + if (donationDuration === 'onetime') return 'a one-time'; + else if (donationDuration === 'month') return 'a monthly'; + else if (donationDuration === 'year') return 'an annual'; + else return 'a'; + }; + + const donationText = ( + + Become {durationToText(modalDefaultStateConfig.donationDuration)}{' '} + supporter of our nonprofit. + + ); const blockDonationText = (