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:
parent
f58011a276
commit
b069f967e4
1 changed files with 13 additions and 1 deletions
|
@ -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 you’ve chosen. You can always cancel before then.
|
||||
</p>
|
||||
);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
renderProductCard({product, offer, currencyClass, updatedPrice, price, benefits}) {
|
||||
if (this.state.showNewsletterSelection) {
|
||||
return null;
|
||||
|
@ -539,7 +551,7 @@ export default class OfferPage extends React.Component {
|
|||
<div className='gh-portal-btn-container sticky m32'>
|
||||
{this.renderSubmitButton()}
|
||||
</div>
|
||||
|
||||
{this.renderFreeTrialMessage({offer})}
|
||||
{this.renderLoginMessage()}
|
||||
</div>
|
||||
</>
|
||||
|
|
Loading…
Add table
Reference in a new issue