diff --git a/pages/auth/forgot-password/index.tsx b/pages/auth/forgot-password/index.tsx index 4f7066b56f..5bb5463c1e 100644 --- a/pages/auth/forgot-password/index.tsx +++ b/pages/auth/forgot-password/index.tsx @@ -1,13 +1,14 @@ import debounce from "lodash/debounce"; import { GetServerSidePropsContext } from "next"; import { getCsrfToken } from "next-auth/client"; -import Link from "next/link"; import React, { SyntheticEvent } from "react"; import { getSession } from "@lib/auth"; import { useLocale } from "@lib/hooks/useLocale"; +import { TextField } from "@components/form/fields"; import { HeadSeo } from "@components/seo/head-seo"; +import Button from "@components/ui/Button"; export default function ForgotPassword({ csrfToken }: { csrfToken: string }) { const { t, i18n } = useLocale(); @@ -78,9 +79,9 @@ export default function ForgotPassword({ csrfToken }: { csrfToken: string }) { return (
- +
-
+
{success && } {!success && ( <> @@ -88,67 +89,41 @@ export default function ForgotPassword({ csrfToken }: { csrfToken: string }) {

{t("forgot_password")}

-

{t("reset_instructions")}

+

{t("reset_instructions")}

{error &&

{error.message}

}
-
- -
- -
-
-
- -
-
- - - + + +