reset-password.tsx23 lines · main
| 1 | import { ResetPasswordForm } from '@/components/interfaces/SignIn/ResetPasswordForm' |
| 2 | import ForgotPasswordLayout from '@/components/layouts/SignInLayout/ForgotPasswordLayout' |
| 3 | import { withAuth } from '@/hooks/misc/withAuth' |
| 4 | import type { NextPageWithLayout } from '@/types' |
| 5 | |
| 6 | const ResetPasswordPage: NextPageWithLayout = () => { |
| 7 | return ( |
| 8 | <div className="flex flex-col gap-4"> |
| 9 | <ResetPasswordForm /> |
| 10 | </div> |
| 11 | ) |
| 12 | } |
| 13 | |
| 14 | ResetPasswordPage.getLayout = (page) => ( |
| 15 | <ForgotPasswordLayout |
| 16 | heading="Change your password" |
| 17 | subheading="Welcome back! Choose a new strong password and save it to proceed" |
| 18 | > |
| 19 | {page} |
| 20 | </ForgotPasswordLayout> |
| 21 | ) |
| 22 | |
| 23 | export default withAuth(ResetPasswordPage) |