diff --git a/src/app/ChangePassword/page.tsx b/src/app/ChangePassword/page.tsx index f12eee3..a05ecd3 100644 --- a/src/app/ChangePassword/page.tsx +++ b/src/app/ChangePassword/page.tsx @@ -5,14 +5,13 @@ 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 dynamic from 'next/dynamic'; import RegistrationTimeline from '../_components/timeline/RegistrationTimeline'; import CaptchaImage from './CaptchaImage'; // adjust path if needed - - +import { IconEye, IconEyeOff } from '@tabler/icons-react'; function generateCaptcha(length = 6) { @@ -30,6 +29,15 @@ export default function Changeloginpwd() { const [password, setPassword] = useState(""); const [confirmPassword, setConfirmPassword] = useState(""); + + + //const [loginVisible, setLoginVisible] = useState(false); + const [confirmVisible, setConfirmVisible] = useState(false); + + // const toggleLoginVisibility = () => setLoginVisible((v) => !v); + const toggleConfirmVisibility = () => setConfirmVisible((v) => !v); + + const [error, setError] = useState(""); const ClientCarousel = dynamic(() => import('./clientCarousel'), { ssr: false }); @@ -41,14 +49,7 @@ export default function Changeloginpwd() { - // useEffect(() => { - // setCaptcha(generateCaptcha()); - // }, []); - // const regenerateCaptcha = () => { - // setCaptcha(generateCaptcha()); - // setInputCaptcha(""); - // }; useEffect(() => { generateCaptcha(); @@ -68,11 +69,16 @@ export default function Changeloginpwd() { return (
- + ebanking e.preventDefault()} /> + setConfirmPassword(e.currentTarget.value)} + type={confirmVisible ? 'text' : 'password'} + rightSection={ + + } onCopy={(e) => e.preventDefault()} onPaste={(e) => e.preventDefault()} onCut={(e) => e.preventDefault()} - /> + + + {/* CAPTCHA */}
@@ -220,3 +242,7 @@ export default function Changeloginpwd() { ); } +function setConfirmVisible(arg0: (v: any) => boolean) { + throw new Error("Function not implemented."); +} + diff --git a/src/app/ChangeTxn/CaptchaImage.tsx b/src/app/ChangeTxn/CaptchaImage.tsx index d63d34c..007ae4d 100644 --- a/src/app/ChangeTxn/CaptchaImage.tsx +++ b/src/app/ChangeTxn/CaptchaImage.tsx @@ -1,5 +1,6 @@ import React, { useEffect, useRef } from 'react'; + const CaptchaImage = ({ text }: { text: string }) => { const canvasRef = useRef(null); diff --git a/src/app/ChangeTxn/page.tsx b/src/app/ChangeTxn/page.tsx index 587def9..a5ab6a0 100644 --- a/src/app/ChangeTxn/page.tsx +++ b/src/app/ChangeTxn/page.tsx @@ -5,10 +5,11 @@ 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 dynamic from 'next/dynamic'; import CaptchaImage from './CaptchaImage'; +import { IconEye, IconEyeOff } from '@tabler/icons-react'; function generateCaptcha(length = 6) { const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; @@ -20,6 +21,15 @@ export default function Changetransactionpwd() { 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); + + const [captcha, setCaptcha] = useState(""); const [inputCaptcha, setInputCaptcha] = useState(""); const ClientCarousel = dynamic(() => import('./clientCarousel'), { ssr: false }); @@ -93,63 +103,23 @@ export default function Changetransactionpwd() { return (
- + ebanking
- {/*
-
- ebanking -
- - Change User Login Password -
- - - - -

- - - Note: Password will contains minimum one alphabet, one digit, one special symbol and total 8 charecters. - - -
-
*/} Change Password Image @@ -167,7 +137,7 @@ export default function Changetransactionpwd() { 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()} /> + + + {/* + + + +); + +const FundsTransferPage: React.FC = () => { + + const router = useRouter(); + + async function handleLogout(e: React.FormEvent) { + e.preventDefault(); + localStorage.removeItem("access_token"); + router.push("/login") + } + + return ( +
+ + ebanking + + +
+ + {/* @ts-ignore */} + Select Transaction Type + + + } + icon={} + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + } + /> + + + + + + + + + © 2025 KCC Bank. All rights reserved. {" "} + + + +
+ +
+ ); +}; + +export default FundsTransferPage;