diff --git a/frontend/src/components/Header.tsx b/frontend/src/components/Header.tsx index 135c0c7..d7a3a33 100644 --- a/frontend/src/components/Header.tsx +++ b/frontend/src/components/Header.tsx @@ -43,6 +43,10 @@ const Header = () => { logout(); }; + const handleChangePassword = () => ( + navigate("/changepassword") + ) + useEffect(() => { const handleClickOutside = (event: MouseEvent) => { if ( @@ -144,10 +148,10 @@ const Header = () => { - Reset Password + Change Password { const { appLoading }: LoadingContextType = useLoading(); @@ -107,7 +108,14 @@ const Main = () => { path="/rules" element={} /> + + } + /> + + {/* ADMIN ROUTES */} }> diff --git a/frontend/src/pages/ChangePassword.tsx b/frontend/src/pages/ChangePassword.tsx new file mode 100644 index 0000000..aa99a9b --- /dev/null +++ b/frontend/src/pages/ChangePassword.tsx @@ -0,0 +1,88 @@ +import Header from "../components/Header"; +import { useNavigate } from "react-router-dom"; +const ChangePassword = () => { + const navigate = useNavigate() + + const handleCancelButton = () => { + navigate("/homepage") + } + + const handleSubmitButton = () => { + //pass + } + + return ( +
+ +
+
+
+ +
+ +
+ +
+

+ Current Password +

+ +
+ +
+

+ New Password +

+ +
+ +
+

+ Confirm Password +

+ +
+ +
+ +
+ +
+ + + + + +
+ +
+ ); +}; + +export default ChangePassword;