[MM-52295] - Update copy of free trial rhs console card (#23145)
Co-authored-by: Mattermost Build <build@mattermost.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
c87fe742be
Коммит
a189fe2992
@@ -55,7 +55,7 @@ export const noBillingHistory = (
|
||||
</div>
|
||||
);
|
||||
|
||||
export const freeTrial = (onUpgradeMattermostCloud: (callerInfo: string) => void, daysLeftOnTrial: number) => (
|
||||
export const freeTrial = (onUpgradeMattermostCloud: (callerInfo: string) => void, daysLeftOnTrial: number, reverseTrial: boolean) => (
|
||||
<div className='UpgradeMattermostCloud'>
|
||||
<div className='UpgradeMattermostCloud__image'>
|
||||
<UpgradeSvg
|
||||
@@ -104,10 +104,21 @@ export const freeTrial = (onUpgradeMattermostCloud: (callerInfo: string) => void
|
||||
onClick={() => onUpgradeMattermostCloud('billing_summary_free_trial_upgrade_button')}
|
||||
className='UpgradeMattermostCloud__upgradeButton'
|
||||
>
|
||||
<FormattedMessage
|
||||
id='admin.billing.subscription.cloudTrial.subscribeButton'
|
||||
defaultMessage='Upgrade Now'
|
||||
/>
|
||||
{
|
||||
reverseTrial ? (
|
||||
<FormattedMessage
|
||||
id='admin.billing.subscription.cloudTrial.purchaseButton'
|
||||
defaultMessage='Purchase Now'
|
||||
/>
|
||||
|
||||
) : (
|
||||
<FormattedMessage
|
||||
id='admin.billing.subscription.cloudTrial.subscribeButton'
|
||||
defaultMessage='Upgrade Now'
|
||||
/>
|
||||
)
|
||||
|
||||
}
|
||||
</button>
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -44,7 +44,7 @@ const BillingSummary = ({isFreeTrial, daysLeftOnTrial, onUpgradeMattermostCloud}
|
||||
} else if (isStarterPostTrial) {
|
||||
body = <UpgradeToProfessionalCard/>;
|
||||
} else if (isFreeTrial) {
|
||||
body = freeTrial(onUpgradeMattermostCloud, daysLeftOnTrial);
|
||||
body = freeTrial(onUpgradeMattermostCloud, daysLeftOnTrial, reverseTrial);
|
||||
} else if (subscription?.last_invoice && !subscription?.upcoming_invoice) {
|
||||
const invoice = subscription.last_invoice;
|
||||
const fullCharges = invoice.line_items.filter((item) => item.type === 'full');
|
||||
|
||||
@@ -312,6 +312,7 @@
|
||||
"admin.billing.subscription.cloudTrial.daysLeftOnTrial": "There are {daysLeftOnTrial} days left on your free trial",
|
||||
"admin.billing.subscription.cloudTrial.lastDay": "This is the last day of your free trial. Your access will expire on {userEndTrialDate} at {userEndTrialHour}.",
|
||||
"admin.billing.subscription.cloudTrial.moreThan3Days": "Your trial has started! There are {daysLeftOnTrial} days left",
|
||||
"admin.billing.subscription.cloudTrial.purchaseButton": "Purchase Now",
|
||||
"admin.billing.subscription.cloudTrial.subscribeButton": "Upgrade Now",
|
||||
"admin.billing.subscription.cloudTrialBadge.daysLeftOnTrial": "{daysLeftOnTrial} trial days left",
|
||||
"admin.billing.subscription.cloudYearlyBadge": "Annual",
|
||||
|
||||
Ссылка в новой задаче
Block a user