π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove dependency
Manav Rathi62c9b2afc23b
diff --git a/web/packages/accounts/pages/credentials.tsx b/web/packages/accounts/pages/credentials.tsxindex ca734fd6e9..3cb1311d29 100644--- a/web/packages/accounts/pages/credentials.tsx+++ b/web/packages/accounts/pages/credentials.tsx@@ -63,7 +63,7 @@ import type { PageProps } from "../types/page";import type { SRPAttributes } from "../types/srp";const Page: React.FC<PageProps> = ({ appContext }) => {- const { logout, setDialogBoxAttributesV2 } = appContext;+ const { logout, showNavBar, setDialogBoxAttributesV2 } = appContext;const [srpAttributes, setSrpAttributes] = useState<SRPAttributes>();const [keyAttributes, setKeyAttributes] = useState<KeyAttributes>();@@ -192,7 +192,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {}};main();- appContext.showNavBar(true);+ showNavBar(true);}, []);// TODO: ^ validateSession is a dependency, but add that only after we've// wrapped items from the callback (like logout) in useCallback too.@@ -353,7 +353,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {onRetry={() =>openPasskeyVerificationURL(passkeyVerificationData)}- appContext={appContext}+ {...{ logout, setDialogBoxAttributesV2 }}/>);}diff --git a/web/packages/accounts/pages/verify.tsx b/web/packages/accounts/pages/verify.tsxindex d7d63cdb30..5cdd5ffab7 100644--- a/web/packages/accounts/pages/verify.tsx+++ b/web/packages/accounts/pages/verify.tsx@@ -15,7 +15,12 @@ import SingleInputForm, {import { ApiError } from "@ente/shared/error";import InMemoryStore, { MS_KEYS } from "@ente/shared/storage/InMemoryStore";import localForage from "@ente/shared/storage/localForage";-import { LS_KEYS, getData, setData, setLSUser } from "@ente/shared/storage/localStorage";+import {+ LS_KEYS,+ getData,+ setData,+ setLSUser,+} from "@ente/shared/storage/localStorage";import {getLocalReferralSource,setIsFirstLogin,@@ -39,7 +44,7 @@ import type { PageProps } from "../types/page";import type { SRPSetupAttributes } from "../types/srp";const Page: React.FC<PageProps> = ({ appContext }) => {- const { logout } = appContext;+ const { logout, showNavBar, setDialogBoxAttributesV2 } = appContext;const [email, setEmail] = useState("");const [resend, setResend] = useState(0);@@ -67,7 +72,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {}};main();- appContext.showNavBar(true);+ showNavBar(true);}, []);const onSubmit: SingleInputFormProps["callback"] = async (@@ -199,7 +204,7 @@ const Page: React.FC<PageProps> = ({ appContext }) => {onRetry={() =>openPasskeyVerificationURL(passkeyVerificationData)}- appContext={appContext}+ {...{ logout, setDialogBoxAttributesV2 }}/>);}