Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Move

Manav Rathi03e5e16bc330
diff --git a/web/packages/shared/components/LoginComponents.tsx b/web/packages/accounts/components/LoginComponents.tsx
similarity index 96%
rename from web/packages/shared/components/LoginComponents.tsx
rename to web/packages/accounts/components/LoginComponents.tsx
index 652900ab60..a1b5158bda 100644
--- a/web/packages/shared/components/LoginComponents.tsx
+++ b/web/packages/accounts/components/LoginComponents.tsx
@@ -7,14 +7,14 @@ import type { MiniDialogAttributes } from "@/base/components/MiniDialog";
import { FocusVisibleButton } from "@/base/components/mui/FocusVisibleButton";
import log from "@/base/log";
import { customAPIHost } from "@/base/origins";
+import { VerticallyCentered } from "@ente/shared/components/Container";
+import FormPaper from "@ente/shared/components/Form/FormPaper";
+import FormPaperFooter from "@ente/shared/components/Form/FormPaper/Footer";
+import LinkButton from "@ente/shared/components/LinkButton";
import { CircularProgress, Stack, Typography, styled } from "@mui/material";
import { t } from "i18next";
import { useRouter } from "next/router";
import React, { useEffect, useState } from "react";
-import { VerticallyCentered } from "./Container";
-import FormPaper from "./Form/FormPaper";
-import FormPaperFooter from "./Form/FormPaper/Footer";
-import LinkButton from "./LinkButton";
export const PasswordHeader: React.FC<React.PropsWithChildren> = ({
children,
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsx
index 5ffb93b73b..ca8245258f 100644
--- a/web/packages/accounts/pages/credentials.tsx
+++ b/web/packages/accounts/pages/credentials.tsx
@@ -7,12 +7,6 @@ import { ensure } from "@/utils/ensure";
import { VerticallyCentered } from "@ente/shared/components/Container";
import FormPaper from "@ente/shared/components/Form/FormPaper";
import LinkButton from "@ente/shared/components/LinkButton";
-import {
- LoginFlowFormFooter,
- PasswordHeader,
- VerifyingPasskey,
- sessionExpiredDialogAttributes,
-} from "@ente/shared/components/LoginComponents";
import VerifyMasterPasswordForm, {
type VerifyMasterPasswordFormProps,
} from "@ente/shared/components/VerifyMasterPasswordForm";
@@ -46,6 +40,12 @@ import { t } from "i18next";
import { useRouter } from "next/router";
import { useCallback, useEffect, useState } from "react";
import { getSRPAttributes } from "../api/srp";
+import {
+ LoginFlowFormFooter,
+ PasswordHeader,
+ VerifyingPasskey,
+ sessionExpiredDialogAttributes,
+} from "../components/LoginComponents";
import { PAGES } from "../constants/pages";
import {
openPasskeyVerificationURL,
diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsx
index 860459d3c9..c3b334cdd7 100644
--- a/web/packages/accounts/pages/verify.tsx
+++ b/web/packages/accounts/pages/verify.tsx
@@ -6,10 +6,6 @@ import { VerticallyCentered } from "@ente/shared/components/Container";
import FormPaper from "@ente/shared/components/Form/FormPaper";
import FormPaperTitle from "@ente/shared/components/Form/FormPaper/Title";
import LinkButton from "@ente/shared/components/LinkButton";
-import {
- LoginFlowFormFooter,
- VerifyingPasskey,
-} from "@ente/shared/components/LoginComponents";
import SingleInputForm, {
type SingleInputFormProps,
} from "@ente/shared/components/SingleInputForm";
@@ -35,6 +31,10 @@ import { useEffect, useState } from "react";
import { Trans } from "react-i18next";
import { getSRPAttributes } from "../api/srp";
import { putAttributes, sendOtt, verifyOtt } from "../api/user";
+import {
+ LoginFlowFormFooter,
+ VerifyingPasskey,
+} from "../components/LoginComponents";
import { PAGES } from "../constants/pages";
import {
openPasskeyVerificationURL,