feat:change login password and change transaction password page created with all validation

This commit is contained in:
2025-07-03 11:23:15 +05:30
parent a46670be1f
commit d52d338a74
13 changed files with 903 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
import React, { useEffect, useRef } from 'react';
const CaptchaImage = ({ text }: { text: string }) => {
const canvasRef = useRef<HTMLCanvasElement | null>(null);
useEffect(() => {
const canvas = canvasRef.current;
const ctx = canvas?.getContext('2d');
if (canvas && ctx) {
ctx.clearRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = '#ffffff';
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.font = '26px Arial';
ctx.fillStyle = '#000';
ctx.setTransform(1, 0.1, -0.1, 1, 0, 0);
ctx.fillText(text, 10, 30);
}
}, [text]);
return <canvas ref={canvasRef} width={120} height={40} />;
};
export default CaptchaImage;