Skip to content

armgit / ente

Public Imported from GitHub
0

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

prettier

Manav Rathiac834f405e1a
diff --git a/apps/accounts/src/pages/generate/index.tsx b/apps/accounts/src/pages/generate/index.tsx
index c73e1c1199..54a2c2a771 100644
--- a/apps/accounts/src/pages/generate/index.tsx
+++ b/apps/accounts/src/pages/generate/index.tsx
@@ -5,13 +5,13 @@ import { AppContext } from 'pages/_app';
import { useContext } from 'react';
export default function Generate() {
- const appContext = useContext(AppContext);
- const router = useRouter();
- return (
- <GeneratePage
- appContext={appContext}
- router={router}
- appName={APPS.ACCOUNTS}
- />
- );
+ const appContext = useContext(AppContext);
+ const router = useRouter();
+ return (
+ <GeneratePage
+ appContext={appContext}
+ router={router}
+ appName={APPS.ACCOUNTS}
+ />
+ );
}
diff --git a/apps/accounts/src/pages/signup/index.tsx b/apps/accounts/src/pages/signup/index.tsx
index 39e405ba76..ead1cc5c85 100644
--- a/apps/accounts/src/pages/signup/index.tsx
+++ b/apps/accounts/src/pages/signup/index.tsx
@@ -5,13 +5,13 @@ import { AppContext } from 'pages/_app';
import { useContext } from 'react';
export default function Sigup() {
- const appContext = useContext(AppContext);
- const router = useRouter();
- return (
- <SignupPage
- appContext={appContext}
- router={router}
- appName={APPS.ACCOUNTS}
- />
- );
+ const appContext = useContext(AppContext);
+ const router = useRouter();
+ return (
+ <SignupPage
+ appContext={appContext}
+ router={router}
+ appName={APPS.ACCOUNTS}
+ />
+ );
}
diff --git a/apps/photos/src/components/Sidebar/UtilitySection.tsx b/apps/photos/src/components/Sidebar/UtilitySection.tsx
index fe3378f8bc..299a802b9d 100644
--- a/apps/photos/src/components/Sidebar/UtilitySection.tsx
+++ b/apps/photos/src/components/Sidebar/UtilitySection.tsx
@@ -74,10 +74,11 @@ export default function UtilitySection({ closeSidebar }) {
try {
const accountsToken = await getAccountsToken();
- window.location.href = `${getAccountsURL()}${ACCOUNTS_PAGES.ACCOUNT_HANDOFF
- }?package=${CLIENT_PACKAGE_NAMES.get(
- APPS.PHOTOS
- )}&token=${accountsToken}`;
+ window.location.href = `${getAccountsURL()}${
+ ACCOUNTS_PAGES.ACCOUNT_HANDOFF
+ }?package=${CLIENT_PACKAGE_NAMES.get(
+ APPS.PHOTOS
+ )}&token=${accountsToken}`;
} catch (e) {
logError(e, 'failed to redirect to accounts page');
}
diff --git a/packages/accounts/pages/credentials.tsx b/packages/accounts/pages/credentials.tsx
index f818f27c77..046e71aa29 100644
--- a/packages/accounts/pages/credentials.tsx
+++ b/packages/accounts/pages/credentials.tsx
@@ -166,8 +166,9 @@ export default function Credentials({
isTwoFactorPasskeysEnabled: true,
});
InMemoryStore.set(MS_KEYS.REDIRECT_URL, PAGES.ROOT);
- window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${window.location.origin
- }/passkeys/finish`;
+ window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${
+ window.location.origin
+ }/passkeys/finish`;
return;
} else if (twoFactorSessionID) {
const sessionKeyAttributes =
diff --git a/packages/accounts/pages/verify.tsx b/packages/accounts/pages/verify.tsx
index 07bc178c9a..4bc5402411 100644
--- a/packages/accounts/pages/verify.tsx
+++ b/packages/accounts/pages/verify.tsx
@@ -81,8 +81,9 @@ export default function VerifyPage({ appContext, router, appName }: PageProps) {
isTwoFactorPasskeysEnabled: true,
});
setIsFirstLogin(true);
- window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${window.location.origin
- }/passkeys/finish`;
+ window.location.href = `${getAccountsURL()}/passkeys/flow?passkeySessionID=${passkeySessionID}&redirect=${
+ window.location.origin
+ }/passkeys/finish`;
router.push(PAGES.CREDENTIALS);
} else if (twoFactorSessionID) {
setData(LS_KEYS.USER, {