Skip to content

Commit

Permalink
Merge pull request #45527 from allroundexperts/fix-45503
Browse files Browse the repository at this point in the history
fix-45503: update trial copy issues
  • Loading branch information
chiragsalian authored Jul 17, 2024
2 parents 39e0f95 + 9ebd971 commit 92721ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
import React from 'react';
import * as Illustrations from '@components/Icon/Illustrations';
import useLocalize from '@hooks/useLocalize';
import * as SubscriptionUtils from '@libs/SubscriptionUtils';
import BillingBanner from './BillingBanner';

function TrialEndedBillingBanner() {
const {translate} = useLocalize();

if (SubscriptionUtils.doesUserHavePaymentCardAdded()) {
return null;
}

return (
<BillingBanner
title={translate('subscription.billingBanner.trialEnded.title')}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ import BillingBanner from './BillingBanner';
function TrialStartedBillingBanner() {
const {translate} = useLocalize();

const subtitle = !SubscriptionUtils.doesUserHavePaymentCardAdded() ? translate('subscription.billingBanner.trialStarted.subtitle') : '';

return (
<BillingBanner
title={translate('subscription.billingBanner.trialStarted.title', {numOfDays: SubscriptionUtils.calculateRemainingFreeTrialDays()})}
subtitle={translate('subscription.billingBanner.trialStarted.subtitle')}
subtitle={subtitle}
icon={Illustrations.TreasureChest}
/>
);
Expand Down

0 comments on commit 92721ef

Please sign in to comment.