Bläddra i källkod

Updates plan banner text on the graph

main
Keith Daulton 2 år sedan
förälder
incheckning
d0e555e90f
1 ändrade filer med 8 tillägg och 22 borttagningar
  1. +8
    -22
      src/webviews/apps/plus/graph/GraphWrapper.tsx

+ 8
- 22
src/webviews/apps/plus/graph/GraphWrapper.tsx Visa fil

@ -245,13 +245,15 @@ export function GraphWrapper({
case SubscriptionState.Paid:
return;
case SubscriptionState.FreeInPreview:
case SubscriptionState.FreePlusInTrial:
icon = 'calendar';
modifier = 'neutral';
content = (
<>
<p className="alert__title">Trial Preview</p>
<p className="alert__title">GitLens+ Trial</p>
<p className="alert__message">
You're able to view the Commit Graph with any repository until your preview expires
You can always use the Commit Graph on local and public repos, while private repos will
required a paid plan once your trial ends
{subscriptionSnapshot.previewTrial
? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}`
: ''}
@ -265,14 +267,14 @@ export function GraphWrapper({
modifier = 'warning';
content = (
<>
<p className="alert__title">Extend Your Trial</p>
<p className="alert__message">Sign in to extend your free trial an additional 7-days.</p>
<p className="alert__title">Extend Your GitLens+ Trial</p>
<p className="alert__message">Sign in to extend your free trial by an additional 7-days.</p>
</>
);
actions = (
<>
<a className="alert-action" href="command:gitlens.plus.loginOrSignUp">
Try for 7-days
Extend Trial
</a>{' '}
<a className="alert-action" href="command:gitlens.plus.purchase">
View Plans
@ -280,28 +282,12 @@ export function GraphWrapper({
</>
);
break;
case SubscriptionState.FreePlusInTrial:
icon = 'calendar';
modifier = 'neutral';
content = (
<>
<p className="alert__title">Extended Trial</p>
<p className="alert__message">
You're able to view the Commit Graph with any repository until your trial expires
{subscriptionSnapshot.previewTrial
? ` ${fromNow(new Date(subscriptionSnapshot.previewTrial.expiresOn))}`
: ''}
.
</p>
</>
);
break;
case SubscriptionState.FreePlusTrialExpired:
icon = 'warning';
modifier = 'warning';
content = (
<>
<p className="alert__title">Trial Expired</p>
<p className="alert__title">GitLens+ Trial Expired</p>
<p className="alert__message">
Upgrade your account to use the Commit Graph and other GitLens+ features on private repos.
</p>

Laddar…
Avbryt
Spara