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