We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc76501 commit 22d4b24Copy full SHA for 22d4b24
src/recaptcha.js
@@ -2,15 +2,19 @@ import React from 'react'
2
import { useNetlifyFormContext } from './netlify-form-context'
3
import GoogleRecaptcha from 'react-google-recaptcha'
4
5
-export const Recaptcha = ({ siteKey = '', invisible = false, ...passThroughProps }) => {
+export const Recaptcha = ({
6
+ siteKey = '',
7
+ invisible = false,
8
+ ...passThroughProps
9
+}) => {
10
const { recaptchaRef } = useNetlifyFormContext()
11
12
return (
- <GoogleRecaptcha
- {...passThroughProps}
- sitekey={siteKey}
- ref={recaptchaRef}
13
- {...(invisible ? {size: 'invisible'} : {})}
+ <GoogleRecaptcha
14
+ {...passThroughProps}
15
+ sitekey={siteKey}
16
+ ref={recaptchaRef}
17
+ {...(invisible ? { size: 'invisible' } : {})}
18
/>
19
)
20
}
0 commit comments