@@ -6,11 +6,14 @@ import { ClientOnly } from "@/components/blocks/client-only";
6
6
import { GenericLoadingPage } from "@/components/blocks/skeletons/GenericLoadingPage" ;
7
7
import { ToggleThemeButton } from "@/components/color-mode-toggle" ;
8
8
import { Spinner } from "@/components/ui/Spinner/Spinner" ;
9
+ import { UnderlineLink } from "@/components/ui/UnderlineLink" ;
10
+ import { Alert , AlertDescription , AlertTitle } from "@/components/ui/alert" ;
9
11
import { NEXT_PUBLIC_TURNSTILE_SITE_KEY } from "@/constants/public-envs" ;
10
12
import { useDashboardRouter } from "@/lib/DashboardRouter" ;
11
13
import type { Account } from "@3rdweb-sdk/react/hooks/useApi" ;
12
14
import { Turnstile } from "@marsidev/react-turnstile" ;
13
15
import { isVercel } from "lib/vercel-utils" ;
16
+ import { PhoneIcon } from "lucide-react" ;
14
17
import { useTheme } from "next-themes" ;
15
18
import Link from "next/link" ;
16
19
import { Suspense , lazy , useEffect , useState } from "react" ;
@@ -39,15 +42,7 @@ const LazyAccountOnboarding = lazy(
39
42
const loginOptions = [
40
43
inAppWallet ( {
41
44
auth : {
42
- options : [
43
- "google" ,
44
- "apple" ,
45
- "facebook" ,
46
- "github" ,
47
- "email" ,
48
- "phone" ,
49
- "passkey" ,
50
- ] ,
45
+ options : [ "google" , "apple" , "facebook" , "github" , "email" , "passkey" ] ,
51
46
} ,
52
47
} ) ,
53
48
createWallet ( "io.metamask" ) ,
@@ -66,7 +61,6 @@ const inAppWalletLoginOptions = [
66
61
"facebook" ,
67
62
"github" ,
68
63
"email" ,
69
- "phone" ,
70
64
"passkey" ,
71
65
"wallet" ,
72
66
] ,
@@ -339,6 +333,26 @@ function CustomConnectEmbed(props: {
339
333
privacyPolicyUrl = "/privacy-policy"
340
334
termsOfServiceUrl = "/terms"
341
335
/>
336
+ { /* alert people who used to log in with phone to instead log in with their account email */ }
337
+ < Alert variant = "info" className = "mt-8" >
338
+ < PhoneIcon className = "size-4" />
339
+ < AlertTitle >
340
+ < span > Phone login is no longer supported</ span >
341
+ </ AlertTitle >
342
+ < AlertDescription >
343
+ < p >
344
+ You can instead log into your account using your account email
345
+ address.
346
+ </ p >
347
+ < p >
348
+ Please{ " " }
349
+ < UnderlineLink href = "/support" >
350
+ reach out to support
351
+ </ UnderlineLink > { " " }
352
+ if you need help.
353
+ </ p >
354
+ </ AlertDescription >
355
+ </ Alert >
342
356
</ ClientOnly >
343
357
</ div >
344
358
) ;
0 commit comments