Skip to content

Commit

Permalink
Cleanup CaptchaProps
Browse files Browse the repository at this point in the history
  • Loading branch information
giacomognosis committed Dec 22, 2024
1 parent 2c24833 commit fcb0f42
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/src/components/Captcha/CloudflareCaptcha.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ const siteKey = process.env.REACT_APP_CAPTCHA_SITE_KEY || "10000000-ffff-ffff-ff

interface CaptchaProps {
setCaptchaToken: (token: string) => void,
// windowWidth: number,
// captchaRef: null
// windowWidth: number, // Not needed for Cloudflare
// captchaRef: null // Not needed for Cloudflare
}

const CloudflareCaptchaWidget: React.FC<CaptchaProps> = ({ setCaptchaToken }) => {

const onVerifyCaptcha = (token: string) => {
console.log(token)
setCaptchaToken(token)
}

Expand Down

0 comments on commit fcb0f42

Please sign in to comment.