Disable hCaptcha integration in ContactFormSection

This commit is contained in:
2025-06-01 21:12:15 +02:00
parent 44e4a0f998
commit 85fcff9793

View File

@@ -22,9 +22,9 @@ const ContactFormSection = () => {
const [loading, setLoading] = useState(false); const [loading, setLoading] = useState(false);
const [error, setError] = useState(""); const [error, setError] = useState("");
const hCaptchaSiteKey: string = process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY ?? "null"; // const hCaptchaSiteKey: string = process.env.NEXT_PUBLIC_HCAPTCHA_SITE_KEY ?? "null";
//
console.log(hCaptchaSiteKey); // console.log(hCaptchaSiteKey);
const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => { const handleChange = (e: React.ChangeEvent<HTMLInputElement | HTMLTextAreaElement>) => {
setForm({...form, [e.target.name]: e.target.value}); setForm({...form, [e.target.name]: e.target.value});
@@ -179,15 +179,15 @@ const ContactFormSection = () => {
/> />
</motion.div> </motion.div>
<motion.div {/*<motion.div*/}
className="pt-2" {/* className="pt-2"*/}
initial={{opacity: 0, y: 10}} {/* initial={{opacity: 0, y: 10}}*/}
whileInView={{opacity: 1, y: 0}} {/* whileInView={{opacity: 1, y: 0}}*/}
viewport={{once: true}} {/* viewport={{once: true}}*/}
transition={{duration: 0.5, delay: 0.7}} {/* transition={{duration: 0.5, delay: 0.7}}*/}
> {/*>*/}
<HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/> {/* <HCaptcha sitekey={hCaptchaSiteKey} onVerify={setCaptchaToken}/>*/}
</motion.div> {/*</motion.div>*/}
{error && ( {error && (
<div className="text-red-600 font-medium pt-2"> <div className="text-red-600 font-medium pt-2">