diff --git a/src/app/ChangePassword/page.tsx b/src/app/ChangePassword/page.tsx index d0fb181..4f377c6 100644 --- a/src/app/ChangePassword/page.tsx +++ b/src/app/ChangePassword/page.tsx @@ -5,9 +5,10 @@ import { notifications } from "@mantine/notifications"; import { Providers } from "@/app/providers"; import { useRouter } from "next/navigation"; import NextImage from "next/image"; -import myImage from '@/app/image/ebanking.jpg'; +import logo from '@/app/image/logo.jpg'; import changePwdImage from '@/app/image/changepw.png'; import CaptchaImage from './CaptchaImage'; +import { IconEye, IconEyeOff } from '@tabler/icons-react'; export default function ChangeLoginPwd() { const router = useRouter(); @@ -18,6 +19,10 @@ export default function ChangeLoginPwd() { const [captchaInput, setCaptchaInput] = useState(''); const [captchaError, setCaptchaError] = useState(''); + + const [confirmVisible, setConfirmVisible] = useState(false); + const toggleConfirmVisibility = () => setConfirmVisible((v) => !v); + useEffect(() => { generateCaptcha(); }, []); @@ -122,11 +127,16 @@ export default function ChangeLoginPwd() { return (
- + ebanking setConfirmPassword(e.currentTarget.value)} + type={confirmVisible ? 'text' : 'password'} + rightSection={ + + } onCopy={(e) => e.preventDefault()} onPaste={(e) => e.preventDefault()} onCut={(e) => e.preventDefault()} @@ -232,4 +252,4 @@ export default function ChangeLoginPwd() { ); } -} +} \ No newline at end of file diff --git a/src/app/ChangeTxn/page.tsx b/src/app/ChangeTxn/page.tsx index 4e3dffd..42ba2a2 100644 --- a/src/app/ChangeTxn/page.tsx +++ b/src/app/ChangeTxn/page.tsx @@ -12,27 +12,14 @@ import { IconEye, IconEyeOff } from '@tabler/icons-react'; export default function ChangeTransactionPwd() { const router = useRouter(); -<<<<<<< HEAD const [authorized, SetAuthorized] = useState(null); const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); -======= - const [error, setError] = useState(null); - const [CIF, SetCIF] = useState(""); - const [psw, SetPsw] = useState(""); - - - //const [loginVisible, setLoginVisible] = useState(false); - const [confirmVisible, setConfirmVisible] = useState(false); - - // const toggleLoginVisibility = () => setLoginVisible((v) => !v); - const toggleConfirmVisibility = () => setConfirmVisible((v) => !v); - - ->>>>>>> 293a7dbea0766fdf05804199800c4e3fd9174507 const [captcha, setCaptcha] = useState(""); const [captchaInput, setCaptchaInput] = useState(''); const [captchaError, setCaptchaError] = useState(''); + const [confirmVisible, setConfirmVisible] = useState(false); + const toggleConfirmVisibility = () => setConfirmVisible((v) => !v); useEffect(() => { generateCaptcha(); @@ -123,7 +110,6 @@ export default function ChangeTransactionPwd() { } } -<<<<<<< HEAD useEffect(() => { const token = localStorage.getItem("access_token"); if (!token) { @@ -134,94 +120,21 @@ export default function ChangeTransactionPwd() { SetAuthorized(true); } }, []); -======= - return ( - -
- - ebanking - -
- - - Change Password Image - - - Set Transaction Password -
- e.preventDefault()} - onPaste={(e) => e.preventDefault()} - onCut={(e) => e.preventDefault()} - /> - {/* e.preventDefault()} - onPaste={(e) => e.preventDefault()} - onCut={(e) => e.preventDefault()} - /> */} - SetPsw(e.currentTarget.value)} - type={confirmVisible ? 'text' : 'password'} - rightSection={ - - } - onCopy={(e) => e.preventDefault()} - onPaste={(e) => e.preventDefault()} - onCut={(e) => e.preventDefault()} - /> - - - - {/* */} ->>>>>>> 293a7dbea0766fdf05804199800c4e3fd9174507 if (authorized) { return (
- + ebanking + {confirmVisible ? : } + + } onChange={(e) => setConfirmPassword(e.currentTarget.value)} onCopy={(e) => e.preventDefault()} onPaste={(e) => e.preventDefault()}