From 0a3d4d2d6c7b9b0eb40a6cef897cfaed321ec252 Mon Sep 17 00:00:00 2001 From: anikaahmed114 Date: Sat, 2 Mar 2024 16:16:55 -0500 Subject: [PATCH] added comments --- .DS_Store | Bin 0 -> 6148 bytes compass/app/auth/forgot_password/page.tsx | 10 ++- compass/app/page.tsx | 86 ++++++++++++++++++++++ 3 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 .DS_Store create mode 100644 compass/app/page.tsx diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..2a70607eb952be7bf408f0ef6db8429721f9cb2a GIT binary patch literal 6148 zcmeHK%}&BV5S|5;5@NzZ6ONmBB@rY@jF$%S1+3A78f+=i#?mDe&_Z z7o(sT55|z0WaeAuXUlvgy9@w`&NOTQQ~J;uXCJsTsSX{yjE>^k<(|#P_x1^Mn z(33Y#VwK!uWVs<_u`mP705h<$4A{fYDQ|3t+!!;!4E&Y>Iv*q|p=&WSsE-abdIUf$ zpj!*BX_lZGY0*RFr|p5RM-(im~!+>o99~044QHfcK8tX$-+)3LO&h%mpUDU zYmhB7zzlq4fM!3G3f=!_KhOU { + //when email string inputted it is checked in isValidEmail const error = isValidEmail(confirmEmail); setEmailError(error); + //button is disabled if any error is detected setIsButtonDisabled(error !== null && !error.includes('exists in the database')); }, [confirmEmail]); @@ -40,6 +46,7 @@ export default function Page() { { @@ -49,10 +56,11 @@ export default function Page() {

{emailError}

+ //if email does not meet certain criteria, then issue an error )}
- + {/* link back to login page */} Back to Sign In + + +
+ +

+ © 2024 Compass Center +

+ + + ); +}; \ No newline at end of file