Skip to content

Commit f56cc00

Browse files
authored
[Dashboard] Remove phone login option and add info alert (#7391)
1 parent 6be9459 commit f56cc00

File tree

1 file changed

+24
-10
lines changed

1 file changed

+24
-10
lines changed

apps/dashboard/src/app/(app)/login/LoginPage.tsx

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@ import { ClientOnly } from "@/components/blocks/client-only";
66
import { GenericLoadingPage } from "@/components/blocks/skeletons/GenericLoadingPage";
77
import { ToggleThemeButton } from "@/components/color-mode-toggle";
88
import { Spinner } from "@/components/ui/Spinner/Spinner";
9+
import { UnderlineLink } from "@/components/ui/UnderlineLink";
10+
import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
911
import { NEXT_PUBLIC_TURNSTILE_SITE_KEY } from "@/constants/public-envs";
1012
import { useDashboardRouter } from "@/lib/DashboardRouter";
1113
import type { Account } from "@3rdweb-sdk/react/hooks/useApi";
1214
import { Turnstile } from "@marsidev/react-turnstile";
1315
import { isVercel } from "lib/vercel-utils";
16+
import { PhoneIcon } from "lucide-react";
1417
import { useTheme } from "next-themes";
1518
import Link from "next/link";
1619
import { Suspense, lazy, useEffect, useState } from "react";
@@ -39,15 +42,7 @@ const LazyAccountOnboarding = lazy(
3942
const 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

Comments
 (0)