@@ -16,6 +16,7 @@ import { useFeatureFlag } from "../data/featureflag-query";
16
16
import { verificationClient } from "../service/public-api" ;
17
17
import { InputField } from "../components/forms/InputField" ;
18
18
import { TextInputField } from "../components/forms/TextInputField" ;
19
+ import { Link } from "react-router-dom" ;
19
20
20
21
interface VerifyModalState {
21
22
phoneNumber ?: string ;
@@ -70,7 +71,13 @@ export function VerifyModal() {
70
71
onSubmit = { sendCode }
71
72
title = "User Validation Required"
72
73
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 >
74
81
< Button type = "submit" disabled = { ! state . phoneNumberValid || state . sending } >
75
82
{ phoneVerificationByCall ? "Send Code via Voice call" : "Send Code via SMS" }
76
83
</ Button >
@@ -79,11 +86,15 @@ export function VerifyModal() {
79
86
visible = { true }
80
87
>
81
88
< 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.
84
94
</ Alert >
85
95
< 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.
87
98
</ div >
88
99
{ state . message ? (
89
100
< Alert type = { state . message . type } className = "mt-4 py-3" >
@@ -172,7 +183,13 @@ export function VerifyModal() {
172
183
onSubmit = { verifyToken }
173
184
title = "User Validation Required"
174
185
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 >
176
193
< Button type = "submit" disabled = { ! isTokenFilled ( ) } >
177
194
Validate Account
178
195
</ Button >
@@ -181,8 +198,8 @@ export function VerifyModal() {
181
198
visible = { true }
182
199
>
183
200
< 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.
186
203
</ Alert >
187
204
< div className = "pt-4" >
188
205
< LinkButton onClick = { reset } > ← Use a different phone number</ LinkButton >
0 commit comments