[web] [auth] Fix crash due to incorrect context
Introduced since the deployment this morning.
This commit is contained in:
@@ -2,7 +2,7 @@ import { stashRedirect } from "@/accounts/services/redirect";
|
||||
import { EnteLogo } from "@/base/components/EnteLogo";
|
||||
import { ActivityIndicator } from "@/base/components/mui/ActivityIndicator";
|
||||
import { NavbarBase } from "@/base/components/Navbar";
|
||||
import { AppContext } from "@/new/photos/types/context";
|
||||
import { AppContext } from "./_app";
|
||||
import { ensure } from "@/utils/ensure";
|
||||
import {
|
||||
HorizontalFlex,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/change-email";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/change-password";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/credentials";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/generate";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/login";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/passkeys/finish";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "../_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/two-factor/recover";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "../_app";
|
||||
|
||||
const Page = () => (
|
||||
<Page_ appContext={useAppContext()} twoFactorType="passkey" />
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/recover";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/signup";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/two-factor/recover";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "../_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} twoFactorType="totp" />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/two-factor/setup";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "../_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/two-factor/verify";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "../_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Page_ from "@/accounts/pages/verify";
|
||||
import { useAppContext } from "@/new/photos/types/context";
|
||||
import { useAppContext } from "./_app";
|
||||
|
||||
const Page = () => <Page_ appContext={useAppContext()} />;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user