@@ -6,11 +6,14 @@ import { ClientOnly } from "@/components/blocks/client-only";
66import { GenericLoadingPage } from "@/components/blocks/skeletons/GenericLoadingPage" ;
77import { ToggleThemeButton } from "@/components/color-mode-toggle" ;
88import { Spinner } from "@/components/ui/Spinner/Spinner" ;
9+ import { UnderlineLink } from "@/components/ui/UnderlineLink" ;
10+ import { Alert , AlertDescription , AlertTitle } from "@/components/ui/alert" ;
911import { NEXT_PUBLIC_TURNSTILE_SITE_KEY } from "@/constants/public-envs" ;
1012import { useDashboardRouter } from "@/lib/DashboardRouter" ;
1113import type { Account } from "@3rdweb-sdk/react/hooks/useApi" ;
1214import { Turnstile } from "@marsidev/react-turnstile" ;
1315import { isVercel } from "lib/vercel-utils" ;
16+ import { PhoneIcon } from "lucide-react" ;
1417import { useTheme } from "next-themes" ;
1518import Link from "next/link" ;
1619import { Suspense , lazy , useEffect , useState } from "react" ;
@@ -39,15 +42,7 @@ const LazyAccountOnboarding = lazy(
3942const loginOptions = [
4043 inAppWallet ( {
4144 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" ] ,
5146 } ,
5247 } ) ,
5348 createWallet ( "io.metamask" ) ,
@@ -66,7 +61,6 @@ const inAppWalletLoginOptions = [
6661 "facebook" ,
6762 "github" ,
6863 "email" ,
69- "phone" ,
7064 "passkey" ,
7165 "wallet" ,
7266 ] ,
@@ -339,6 +333,26 @@ function CustomConnectEmbed(props: {
339333 privacyPolicyUrl = "/privacy-policy"
340334 termsOfServiceUrl = "/terms"
341335 />
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 >
342356 </ ClientOnly >
343357 </ div >
344358 ) ;
0 commit comments