mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-18 02:21:47 -05:00
Updated subscription info for users on free trial
refs https://github.com/TryGhost/Team/issues/1724
This commit is contained in:
parent
a6666eb8fd
commit
d5dedd4765
1 changed files with 9 additions and 0 deletions
|
@ -477,6 +477,15 @@ const AccountWelcome = () => {
|
|||
if (subscription?.cancel_at_period_end) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (subscriptionHasFreeTrial({sub: subscription})) {
|
||||
const trialEnd = getDateString(subscription.trial_end_at);
|
||||
return (
|
||||
<div className='gh-portal-section'>
|
||||
<p className='gh-portal-text-center gh-portal-free-ctatext'>Your subscription will start on {trialEnd}</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<div className='gh-portal-section'>
|
||||
<p className='gh-portal-text-center gh-portal-free-ctatext'>Your subscription will renew on {getDateString(currentPeriodEnd)}</p>
|
||||
|
|
Loading…
Add table
Reference in a new issue