From c8583e887d5df640e3eaa26b929404173e4e4e23 Mon Sep 17 00:00:00 2001 From: Kyle Ramachandran Date: Sun, 25 Feb 2024 14:40:24 -0800 Subject: [PATCH] [feat] added resetPassword screen, implemented most functionality except checking if new pwd matches existing pwd, and styled page --- src/app/auth/resetPassword/index.tsx | 287 +++++++++++++------------- src/app/auth/resetPassword/styles.tsx | 7 +- 2 files changed, 147 insertions(+), 147 deletions(-) diff --git a/src/app/auth/resetPassword/index.tsx b/src/app/auth/resetPassword/index.tsx index d5fd82ec..e02dde3c 100644 --- a/src/app/auth/resetPassword/index.tsx +++ b/src/app/auth/resetPassword/index.tsx @@ -85,156 +85,157 @@ function ResetPasswordScreen() { return ( - Create a New Password - - { - setPassword(text); - checkPassword(text); - }} - value={password} - attributes={{ - textContentType: 'password', - secureTextEntry: passwordTextHidden, - }} - > - setPasswordTextHidden(!passwordTextHidden)} - /> - - - - {password !== '' && ( - - - - At least 1 uppercase letter - - - )} - {password !== '' && ( - - - - At least 1 lowercase letter - - - )} - {password !== '' && ( - - - + Create a New Password + + { + setPassword(text); + checkPassword(text); + }} + value={password} + attributes={{ + textContentType: 'password', + secureTextEntry: passwordTextHidden, + }} > - At least 1 number - + setPasswordTextHidden(!passwordTextHidden)} + /> + - )} - {password !== '' && ( - - - - At least 8 characters - - - )} - {/* functionality for this has not been implemented */} - {password !== '' && ( - - - - Must be different than your old password - - - )} - - { - setConfirmPassword(text); - checkConfirmPassword(text); - }} - value={confirmPassword} - attributes={{ - textContentType: 'password', - secureTextEntry: confirmPasswordTextHidden, - }} - > - - setConfirmPasswordTextHidden(!confirmPasswordTextHidden) - } - /> - - + {password !== '' && ( + + + + At least 1 uppercase letter + + + )} + {password !== '' && ( + + + + At least 1 lowercase letter + + + )} + {password !== '' && ( + + + + At least 1 number + + + )} + {password !== '' && ( + + + + At least 8 characters + + + )} + {/* functionality for this has not been implemented */} + {password !== '' && ( + + + + Must be different than your old password + + + )} - {password !== '' && ( - - - + { + setConfirmPassword(text); + checkConfirmPassword(text); + }} + value={confirmPassword} + attributes={{ + textContentType: 'password', + secureTextEntry: confirmPasswordTextHidden, + }} > - Inputs must match - + + setConfirmPasswordTextHidden(!confirmPasswordTextHidden) + } + /> + - )} + {password !== '' && ( + + + + Inputs must match + + + )} +