0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Added free trial message for offers

- adds free trial info at the bottom of offer pages that have free trial
This commit is contained in:
Rishabh 2022-08-19 12:33:29 +05:30
parent f58011a276
commit b069f967e4

View file

@ -513,6 +513,18 @@ export default class OfferPage extends React.Component {
); );
} }
renderFreeTrialMessage({offer}) {
if (offer.type === 'trial') {
return (
<p className='gh-portal-free-trial-notification'>
After a free trial ends, you will be charged regular price for the tier youve chosen. You can always cancel before then.
</p>
);
}
return null;
}
renderProductCard({product, offer, currencyClass, updatedPrice, price, benefits}) { renderProductCard({product, offer, currencyClass, updatedPrice, price, benefits}) {
if (this.state.showNewsletterSelection) { if (this.state.showNewsletterSelection) {
return null; return null;
@ -539,7 +551,7 @@ export default class OfferPage extends React.Component {
<div className='gh-portal-btn-container sticky m32'> <div className='gh-portal-btn-container sticky m32'>
{this.renderSubmitButton()} {this.renderSubmitButton()}
</div> </div>
{this.renderFreeTrialMessage({offer})}
{this.renderLoginMessage()} {this.renderLoginMessage()}
</div> </div>
</> </>