Skip to content

Commit

Permalink
chore: add ref type
Browse files Browse the repository at this point in the history
  • Loading branch information
Jon Waldstein committed Oct 7, 2024
1 parent 5eb5ed2 commit 62c97c5
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type {TurnstileInstance} from '@marsidev/react-turnstile';
import {Turnstile} from '@marsidev/react-turnstile';
import {__} from '@wordpress/i18n';
import {useCallback, useEffect, useRef} from 'react';
Expand All @@ -13,7 +14,7 @@ export default function TurnstileField({
fieldError,
inputProps
}) {
const ref = useRef();
const ref = useRef<TurnstileInstance | null>(null);
const { setValue, setError } = window.givewp.form.hooks.useFormContext();
const { submitCount } = window.givewp.form.hooks.useFormState();
const setFormError = useCallback(() =>
Expand Down

0 comments on commit 62c97c5

Please sign in to comment.