diff --git a/src/app/ChangePassword/page.tsx b/src/app/ChangePassword/page.tsx index f4d8bfa..d0fb181 100644 --- a/src/app/ChangePassword/page.tsx +++ b/src/app/ChangePassword/page.tsx @@ -85,7 +85,7 @@ export default function ChangeLoginPwd() { }); const data = await response.json(); if (response.ok) { - // console.log(data); + console.log(data); notifications.show({ withBorder: true, color: "green", 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 37188af..4e3dffd 100644 --- a/src/app/ChangeTxn/page.tsx +++ b/src/app/ChangeTxn/page.tsx @@ -5,15 +5,31 @@ 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 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(''); @@ -107,6 +123,7 @@ export default function ChangeTransactionPwd() { } } +<<<<<<< HEAD useEffect(() => { const token = localStorage.getItem("access_token"); if (!token) { @@ -117,6 +134,84 @@ 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 ( diff --git a/src/app/FundsTransfer/page.tsx b/src/app/FundsTransfer/page.tsx new file mode 100644 index 0000000..dcaee1b --- /dev/null +++ b/src/app/FundsTransfer/page.tsx @@ -0,0 +1,170 @@ +"use client"; + +import React from 'react'; +import { Card, Button, Grid, Title, Text, Container, Box, Image } from '@mantine/core'; +import NextImage from "next/image"; +import logo from "@/app/image/logo.jpg"; + +import { IconBan, IconRefresh, IconExchange, IconCreditCard, IconBuildingBank, IconMobiledata, IconWallet, IconTransferIn } from '@tabler/icons-react'; +import { IconLogout } from "@tabler/icons-react"; +import { useRouter } from "next/navigation"; + + + + +const options = [ + { + title: 'Transfer within the bank', + subtitle: '₹1 to ₹25 Lacs per day', + }, + { + title: 'IMPS P2A - Instant Transfer', + subtitle: '365 days, 24x7', + }, + { + title: 'Transfer to other bank (NEFT)', + subtitle: 'Also for Credit Cards', + }, + { + title: 'Transfer to other bank (RTGS)', + subtitle: '₹2 Lacs to ₹25 Lacs per day', + }, + { + title: 'IMPS P2P - Instant Transfer', + subtitle: '(IMPS: Mobile No.)', + }, + +]; + + +interface TransactionOptionProps { + title: string; + description: string; + icon: React.ReactNode; +} + +const TransactionOption: React.FC = ({ title, description, icon }) => ( + + + + {icon} + + + {title} + {description} + + + + +); + +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;