chore: remove unneeded props from AuthContainer and make its usages cleaner (#19191)

* refactor AuthContainer by removing app-dir related props

* fix
This commit is contained in:
Benny Joo authored and GitHub committed 2025-02-12 05:19:16 -05:00
1 parent 207804bd97
commit 4f226cd653
6 files changed
+4 -17

No files matched your search

@@ -73,11 +73,7 @@ export default function Page({ requestId, isRequestExpired, csrfToken }: PagePro
};
return (
<AuthContainer
showLogo
title={t("reset_password")}
description={t("change_your_password")}
heading={!success ? t("reset_password") : undefined}>
<AuthContainer showLogo heading={!success ? t("reset_password") : undefined}>
{isRequestExpired && <Expired />}
{!isRequestExpired && !success && (
<>
@@ -89,9 +89,7 @@ export default function ForgotPassword(props: PageProps) {
return (
<AuthContainer
showLogo
title={!success ? t("forgot_password") : t("reset_link_sent")}
heading={!success ? t("forgot_password") : t("reset_link_sent")}
description={t("request_password_reset")}
footerText={
!success && (
<>