This commit is contained in:
Manav Rathi 2024-05-26 19:48:12 +05:30
parent 693ef45e2c
commit 19a104374d
No known key found for this signature in database
11 changed files with 43 additions and 87 deletions

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import ChangeEmailPage from "@ente/accounts/pages/change-email";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/change-email";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <ChangeEmailPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import ChangePasswordPage from "@ente/accounts/pages/change-password";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/change-password";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <ChangePasswordPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import CredentialPage from "@ente/accounts/pages/credentials";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/credentials";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <CredentialPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import GeneratePage from "@ente/accounts/pages/generate";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/generate";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <GeneratePage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import LoginPage from "@ente/accounts/pages/login";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/login";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <LoginPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import RecoverPage from "@ente/accounts/pages/recover";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/recover";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <RecoverPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import SignupPage from "@ente/accounts/pages/signup";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/signup";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <SignupPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import TwoFactorRecoverPage from "@ente/accounts/pages/two-factor/recover";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/two-factor/recover";
import { useContext } from "react";
import { AppContext } from "../_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <TwoFactorRecoverPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import TwoFactorSetupPage from "@ente/accounts/pages/two-factor/setup";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/two-factor/setup";
import { useContext } from "react";
import { AppContext } from "../_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <TwoFactorSetupPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import TwoFactorVerifyPage from "@ente/accounts/pages/two-factor/verify";
import { APPS } from "@ente/shared/apps/constants";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/two-factor/verify";
import { useContext } from "react";
import { AppContext } from "../_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <TwoFactorVerifyPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;

View file

@ -1,12 +1,8 @@
import { ensure } from "@/utils/ensure";
import VerifyPage from "@ente/accounts/pages/verify";
import { APPS } from "@ente/shared/apps/constants";
import { AppContext } from "pages/_app";
import React, { useContext } from "react";
import Page_ from "@ente/accounts/pages/verify";
import { useContext } from "react";
import { AppContext } from "./_app";
const Page: React.FC = () => {
const appContext = ensure(useContext(AppContext));
return <VerifyPage appContext={appContext} appName={APPS.AUTH} />;
};
const Page = () => <Page_ appContext={ensure(useContext(AppContext))} />;
export default Page;