diff --git a/web/apps/auth/src/pages/login.tsx b/web/apps/auth/src/pages/login.tsx
index c373229f00..46a8d69531 100644
--- a/web/apps/auth/src/pages/login.tsx
+++ b/web/apps/auth/src/pages/login.tsx
@@ -1,6 +1,3 @@
-import Page_ from "@/accounts/pages/login";
-import { useAppContext } from "types/context";
-
-const Page = () => ;
+import Page from "@/accounts/pages/login";
export default Page;
diff --git a/web/apps/photos/src/pages/login.tsx b/web/apps/photos/src/pages/login.tsx
index ca1a027e86..46a8d69531 100644
--- a/web/apps/photos/src/pages/login.tsx
+++ b/web/apps/photos/src/pages/login.tsx
@@ -1,6 +1,3 @@
-import Page_ from "@/accounts/pages/login";
-import { useAppContext } from "@/new/photos/types/context";
-
-const Page = () => ;
+import Page from "@/accounts/pages/login";
export default Page;
diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsx
index ee5d6dbff7..cca1500fff 100644
--- a/web/packages/accounts/pages/verify.tsx
+++ b/web/packages/accounts/pages/verify.tsx
@@ -1,4 +1,25 @@
-import { FormPaper, FormPaperTitle } from "@/base/components/FormPaper";
+import {
+ AccountsPageContents,
+ AccountsPageFooter,
+ AccountsPageTitle,
+} from "@/accounts/components/layouts/centered-paper";
+import { VerifyingPasskey } from "@/accounts/components/LoginComponents";
+import { SecondFactorChoice } from "@/accounts/components/SecondFactorChoice";
+import { useSecondFactorChoiceIfNeeded } from "@/accounts/components/utils/second-factor-choice";
+import { PAGES } from "@/accounts/constants/pages";
+import {
+ openPasskeyVerificationURL,
+ passkeyVerificationRedirectURL,
+} from "@/accounts/services/passkey";
+import { stashedRedirect, unstashRedirect } from "@/accounts/services/redirect";
+import { configureSRP } from "@/accounts/services/srp";
+import type {
+ SRPAttributes,
+ SRPSetupAttributes,
+} from "@/accounts/services/srp-remote";
+import { getSRPAttributes } from "@/accounts/services/srp-remote";
+import { putAttributes, sendOTT, verifyEmail } from "@/accounts/services/user";
+import type { PageProps } from "@/accounts/types/page";
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
import log from "@/base/log";
import { VerticallyCentered } from "@ente/shared/components/Container";
@@ -20,32 +41,15 @@ import {
} from "@ente/shared/storage/localStorage/helpers";
import { clearKeys } from "@ente/shared/storage/sessionStorage";
import type { KeyAttributes, User } from "@ente/shared/user/types";
-import { Box, Stack, Typography } from "@mui/material";
+import { Box, Typography } from "@mui/material";
import { HttpStatusCode } from "axios";
import { t } from "i18next";
import { useRouter } from "next/router";
import { useEffect, useState } from "react";
import { Trans } from "react-i18next";
-import {
- LoginFlowFormFooter,
- VerifyingPasskey,
-} from "../components/LoginComponents";
-import { SecondFactorChoice } from "../components/SecondFactorChoice";
-import { useSecondFactorChoiceIfNeeded } from "../components/utils/second-factor-choice";
-import { PAGES } from "../constants/pages";
-import {
- openPasskeyVerificationURL,
- passkeyVerificationRedirectURL,
-} from "../services/passkey";
-import { stashedRedirect, unstashRedirect } from "../services/redirect";
-import { configureSRP } from "../services/srp";
-import type { SRPAttributes, SRPSetupAttributes } from "../services/srp-remote";
-import { getSRPAttributes } from "../services/srp-remote";
-import { putAttributes, sendOTT, verifyEmail } from "../services/user";
-import type { PageProps } from "../types/page";
const Page: React.FC = ({ appContext }) => {
- const { logout, showNavBar, showMiniDialog } = appContext;
+ const { logout, showMiniDialog } = appContext;
const [email, setEmail] = useState("");
const [resend, setResend] = useState(0);
@@ -71,7 +75,6 @@ const Page: React.FC = ({ appContext }) => {
}
};
void main();
- showNavBar(true);
}, []);
const onSubmit: SingleInputFormProps["callback"] = async (
@@ -219,53 +222,46 @@ const Page: React.FC = ({ appContext }) => {
}
return (
-
-
-
-
- ),
- }}
- values={{ email }}
- />
-
-
- {t("check_inbox_hint")}
-
-
+
+
+ ),
+ }}
+ values={{ email }}
/>
+
+
+
+ {t("check_inbox_hint")}
+
+
+
+
+ {resend === 0 && (
+
+ {t("resend_code")}
+
+ )}
+ {resend === 1 && {t("status_sending")}}
+ {resend === 2 && {t("status_sent")}}
+ {t("change_email")}
+
-
-
- {resend === 0 && (
-
- {t("resend_code")}
-
- )}
- {resend === 1 && {t("status_sending")}}
- {resend === 2 && {t("status_sent")}}
-
- {t("change_email")}
-
-
-
-
-
+
);
};