From d8f6400add8d941ce31c9f338b00a4100aa1d0eb Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 9 Oct 2023 12:51:47 +0100 Subject: [PATCH] feat: added dark mode to login, logout, password reset (#11765) Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com> --- apps/web/components/ui/AuthContainer.tsx | 4 ++-- apps/web/pages/auth/forgot-password/[id].tsx | 1 - apps/web/pages/auth/forgot-password/index.tsx | 4 ++-- apps/web/pages/auth/login.tsx | 3 +-- apps/web/pages/auth/logout.tsx | 1 - 5 files changed, 5 insertions(+), 8 deletions(-) diff --git a/apps/web/components/ui/AuthContainer.tsx b/apps/web/components/ui/AuthContainer.tsx index 9da5b38c0f..605875bfc2 100644 --- a/apps/web/components/ui/AuthContainer.tsx +++ b/apps/web/components/ui/AuthContainer.tsx @@ -15,7 +15,7 @@ interface Props { export default function AuthContainer(props: React.PropsWithChildren) { return ( -
+
{props.showLogo && } @@ -28,7 +28,7 @@ export default function AuthContainer(props: React.PropsWithChildren) {
)}
-
+
{props.children}
{props.footerText}
diff --git a/apps/web/pages/auth/forgot-password/[id].tsx b/apps/web/pages/auth/forgot-password/[id].tsx index 36ca1c3511..d80ef07316 100644 --- a/apps/web/pages/auth/forgot-password/[id].tsx +++ b/apps/web/pages/auth/forgot-password/[id].tsx @@ -141,7 +141,6 @@ export default function Page({ requestId, isRequestExpired, csrfToken }: Props) ); } -Page.isThemeSupported = false; Page.PageWrapper = PageWrapper; export async function getServerSideProps(context: GetServerSidePropsContext) { const id = context.params?.id as string; diff --git a/apps/web/pages/auth/forgot-password/index.tsx b/apps/web/pages/auth/forgot-password/index.tsx index 750f86b996..a6fa28b361 100644 --- a/apps/web/pages/auth/forgot-password/index.tsx +++ b/apps/web/pages/auth/forgot-password/index.tsx @@ -126,8 +126,9 @@ export default function ForgotPassword({ csrfToken }: { csrfToken: string }) { />
@@ -337,7 +337,6 @@ const _getServerSideProps = async function getServerSideProps(context: GetServer }; }; -Login.isThemeSupported = false; Login.PageWrapper = PageWrapper; export const getServerSideProps = withNonce(_getServerSideProps); diff --git a/apps/web/pages/auth/logout.tsx b/apps/web/pages/auth/logout.tsx index 59a259ad2a..43990d6eff 100644 --- a/apps/web/pages/auth/logout.tsx +++ b/apps/web/pages/auth/logout.tsx @@ -57,7 +57,6 @@ export function Logout(props: Props) { ); } -Logout.isThemeSupported = false; Logout.PageWrapper = PageWrapper; export default Logout;