From 46719751560e4ccc804d5238bf1b2a2876be4e69 Mon Sep 17 00:00:00 2001 From: Djordje Vlaisavljevic Date: Fri, 19 Aug 2022 13:36:24 +0200 Subject: [PATCH] Updated the way free trial terms are shown refs https://github.com/TryGhost/Team/issues/1726 --- .../portal/src/components/pages/OfferPage.js | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ghost/portal/src/components/pages/OfferPage.js b/ghost/portal/src/components/pages/OfferPage.js index 4f501b67a1..9345111e3f 100644 --- a/ghost/portal/src/components/pages/OfferPage.js +++ b/ghost/portal/src/components/pages/OfferPage.js @@ -130,6 +130,10 @@ export const OfferPageStyles = ({site}) => { .offer .trial-duration { margin-top: 16px; } + +.gh-portal-cancel { + white-space: nowrap; +} `; }; @@ -463,7 +467,9 @@ export default class OfferPage extends React.Component { renewsLabel = `Renews at ${originalPrice}.`; } if (discountDuration === 'trial') { - return null; + return ( +

Try free for {offer.amount} days, then {originalPrice}. Cancel anytime.

+ ); } return (

{this.getOffAmount({offer})} off {durationLabel}. {renewsLabel}

@@ -513,18 +519,6 @@ export default class OfferPage extends React.Component { ); } - renderFreeTrialMessage({offer}) { - if (offer.type === 'trial') { - return ( -

- After a free trial ends, you will be charged regular price for the tier you’ve chosen. You can always cancel before then. -

- ); - } - - return null; - } - renderProductCard({product, offer, currencyClass, updatedPrice, price, benefits}) { if (this.state.showNewsletterSelection) { return null; @@ -551,7 +545,6 @@ export default class OfferPage extends React.Component {
{this.renderSubmitButton()}
- {this.renderFreeTrialMessage({offer})} {this.renderLoginMessage()}