Skip to content

Commit e367ae7

Browse files
authored
[dashboard] tell users to verify by signing up (#19799)
1 parent 19a1764 commit e367ae7

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

components/dashboard/src/start/VerifyModal.tsx

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import { useFeatureFlag } from "../data/featureflag-query";
1616
import { verificationClient } from "../service/public-api";
1717
import { InputField } from "../components/forms/InputField";
1818
import { TextInputField } from "../components/forms/TextInputField";
19+
import { Link } from "react-router-dom";
1920

2021
interface VerifyModalState {
2122
phoneNumber?: string;
@@ -70,7 +71,13 @@ export function VerifyModal() {
7071
onSubmit={sendCode}
7172
title="User Validation Required"
7273
buttons={
73-
<div>
74+
<div className="space-x-4">
75+
<Link to="/billing">
76+
{/* secondary button */}
77+
<Button type="button" variant="secondary">
78+
Subscribe to paid plan
79+
</Button>
80+
</Link>
7481
<Button type="submit" disabled={!state.phoneNumberValid || state.sending}>
7582
{phoneVerificationByCall ? "Send Code via Voice call" : "Send Code via SMS"}
7683
</Button>
@@ -79,11 +86,15 @@ export function VerifyModal() {
7986
visible={true}
8087
>
8188
<Alert type="warning" className="mt-2">
82-
To use Gitpod you'll need to validate your account with your phone number. This is required to
83-
discourage and reduce abuse on Gitpod infrastructure.
89+
To use Gitpod for free you'll need to validate your account with your phone number. This is required
90+
to discourage and reduce abuse on Gitpod infrastructure.
91+
</Alert>
92+
<Alert type="info" className="mt-4">
93+
Alternatively, you can verify by subscribing to our paid plan.
8494
</Alert>
8595
<div className="text-gray-600 dark:text-gray-400 mt-2">
86-
Enter a mobile phone number you would like to use to verify your account. If you encounter issues, please retry later or use a different number.
96+
Enter a mobile phone number you would like to use to verify your account. If you encounter issues,
97+
please retry later or use a different number.
8798
</div>
8899
{state.message ? (
89100
<Alert type={state.message.type} className="mt-4 py-3">
@@ -172,7 +183,13 @@ export function VerifyModal() {
172183
onSubmit={verifyToken}
173184
title="User Validation Required"
174185
buttons={
175-
<div>
186+
<div className="space-x-4">
187+
<Link to="/billing">
188+
{/* secondary button */}
189+
<Button type="button" variant="secondary">
190+
Subscribe to paid plan
191+
</Button>
192+
</Link>
176193
<Button type="submit" disabled={!isTokenFilled()}>
177194
Validate Account
178195
</Button>
@@ -181,8 +198,8 @@ export function VerifyModal() {
181198
visible={true}
182199
>
183200
<Alert type="warning" className="mt-2">
184-
To use Gitpod you'll need to validate your account with your phone number. This is required to
185-
discourage and reduce abuse on Gitpod infrastructure.
201+
To use Gitpod for free you'll need to validate your account with your phone number. This is required
202+
to discourage and reduce abuse on Gitpod infrastructure.
186203
</Alert>
187204
<div className="pt-4">
188205
<LinkButton onClick={reset}>&larr; Use a different phone number</LinkButton>

0 commit comments

Comments
 (0)