Skip to content

Commit

Permalink
fix:performance-issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Hrishita-Paul committed Jun 4, 2024
1 parent 8910fcb commit 6c976b6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/SignUp/SignUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ const SignUpForm = () => {
});
const [captchaVal, setCaptchaVal] = useState("");
const [captchaText, setCaptchaText] = useState("");

const handleCaptcha=useCallback((e)=>{
setCaptchaVal(e.target.value)
});
//password toggele
const passwordToggle = useCallback(() => {
if (passwordType === "password") {
Expand Down Expand Up @@ -421,7 +423,7 @@ const SignUpForm = () => {
name="captcha"
value={captchaVal}
placeholder="Enter Captcha Here"
onChange={(e) => setCaptchaVal(e.target.value)}
onChange={handleCaptcha}
className="w-[100%] bg-slate-100 py-2 px-4 focus:outline-indigo-500"
required
/>
Expand Down

0 comments on commit 6c976b6

Please sign in to comment.