diff --git a/pages/login/officer/change-password/[operationId]/index.js b/pages/login/officer/change-password/[operationId]/index.js
index 4e143536..0f22541c 100644
--- a/pages/login/officer/change-password/[operationId]/index.js
+++ b/pages/login/officer/change-password/[operationId]/index.js
@@ -1,4 +1,4 @@
-import {FingerPrintIcon} from "@heroicons/react/outline";
+import {EyeIcon, EyeOffIcon, FingerPrintIcon} from "@heroicons/react/outline";
import {useState} from "react";
import {useRouter} from "next/router";
import SISTitle from "../../../../../public/components/page-titles";
@@ -110,6 +110,18 @@ export default function OfficerChangePassword({isDataFound, operationId}) {
}
}
+
+ const [isNewPasswordShow, setIsNewPasswordShow] = useState(false);
+ const showNewPassword = () => {
+ setIsNewPasswordShow(!isNewPasswordShow);
+ }
+
+
+ const [isNewPasswordRepeatShow, setIsNewPasswordRepeatShow] = useState(false);
+ const showNewPasswordRepeat = () => {
+ setIsNewPasswordRepeatShow(!isNewPasswordRepeatShow);
+ }
+
return (
<>
@@ -139,38 +151,84 @@ export default function OfficerChangePassword({isDataFound, operationId}) {
-
-
+
+
+ {
+ isNewPasswordShow
+ ?
+
+ :
+
+ }
+
+
+
-
-
+
+
+ {
+ isNewPasswordRepeatShow
+ ?
+
+ :
+
+ }
+
+
+
-
+
diff --git a/pages/login/student/change-password/[operationId]/index.js b/pages/login/student/change-password/[operationId]/index.js
index 0430839e..e1c4c78f 100644
--- a/pages/login/student/change-password/[operationId]/index.js
+++ b/pages/login/student/change-password/[operationId]/index.js
@@ -1,4 +1,4 @@
-import {FingerPrintIcon} from "@heroicons/react/outline";
+import {EyeIcon, EyeOffIcon, FingerPrintIcon} from "@heroicons/react/outline";
import {useState} from "react";
import {useRouter} from "next/router";
import SISTitle from "../../../../../public/components/page-titles";
@@ -111,6 +111,18 @@ export default function StudentForgotPassword({isDataFound, operationId}) {
}
}
+
+ const [isNewPasswordShow, setIsNewPasswordShow] = useState(false);
+ const showNewPassword = () => {
+ setIsNewPasswordShow(!isNewPasswordShow);
+ }
+
+
+ const [isNewPasswordRepeatShow, setIsNewPasswordRepeatShow] = useState(false);
+ const showNewPasswordRepeat = () => {
+ setIsNewPasswordRepeatShow(!isNewPasswordRepeatShow);
+ }
+
return (
<>
@@ -140,40 +152,85 @@ export default function StudentForgotPassword({isDataFound, operationId}) {
-
-
+
+
+ {
+ isNewPasswordShow
+ ?
+
+ :
+
+ }
+
+
+
-
-
+
+
+ {
+ isNewPasswordRepeatShow
+ ?
+
+ :
+
+ }
+
+
+
-
-
+
-
+
+
)
}
@@ -45,7 +45,7 @@ export default function TeacherChangePassword({isDataFound, operationId}) {
function closeSuccessChangePasswordNotification() {
setIsOpenSuccessChangePasswordNotification(false);
- router.push("/login/officer");
+ router.push("/login/teacher");
}
function openSuccessChangePasswordNotification() {
@@ -110,6 +110,18 @@ export default function TeacherChangePassword({isDataFound, operationId}) {
}
}
+
+ const [isNewPasswordShow, setIsNewPasswordShow] = useState(false);
+ const showNewPassword = () => {
+ setIsNewPasswordShow(!isNewPasswordShow);
+ }
+
+
+ const [isNewPasswordRepeatShow, setIsNewPasswordRepeatShow] = useState(false);
+ const showNewPasswordRepeat = () => {
+ setIsNewPasswordRepeatShow(!isNewPasswordRepeatShow);
+ }
+
return (
<>
@@ -139,40 +151,85 @@ export default function TeacherChangePassword({isDataFound, operationId}) {
-
-
+
+
+ {
+ isNewPasswordShow
+ ?
+
+ :
+
+ }
+
+
+
-
-
+
+
+ {
+ isNewPasswordRepeatShow
+ ?
+
+ :
+
+ }
+
+
+
-
-
+
-
+