fix: remove unused captchaToken state
Some checks failed
Deploy Next.js application / deploy (push) Failing after 24m31s
Some checks failed
Deploy Next.js application / deploy (push) Failing after 24m31s
This commit is contained in:
parent
bdc679376d
commit
b8e2d341f1
1 changed files with 0 additions and 2 deletions
|
@ -19,14 +19,12 @@ const Newsletter = () => {
|
||||||
"idle" | "loading" | "success" | "already" | "error"
|
"idle" | "loading" | "success" | "already" | "error"
|
||||||
>("idle");
|
>("idle");
|
||||||
const [input, setInput] = useState<string>("");
|
const [input, setInput] = useState<string>("");
|
||||||
const [captchaToken, setCaptchaToken] = useState<string | null>(null);
|
|
||||||
const [showCaptcha, setShowCaptcha] = useState<boolean>(false);
|
const [showCaptcha, setShowCaptcha] = useState<boolean>(false);
|
||||||
const [isSubmitting, setIsSubmitting] = useState<boolean>(false); // Added this line
|
const [isSubmitting, setIsSubmitting] = useState<boolean>(false); // Added this line
|
||||||
const buttonRef = useRef<HTMLButtonElement>(null);
|
const buttonRef = useRef<HTMLButtonElement>(null);
|
||||||
const hcaptchaRef = useRef<HCaptcha>(null);
|
const hcaptchaRef = useRef<HCaptcha>(null);
|
||||||
|
|
||||||
const handleCaptcha = async (token: string) => {
|
const handleCaptcha = async (token: string) => {
|
||||||
setCaptchaToken(token);
|
|
||||||
setShowCaptcha(false);
|
setShowCaptcha(false);
|
||||||
await handleSubmit(token);
|
await handleSubmit(token);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue