File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,19 @@ import React from 'react'
2
2
import { useNetlifyFormContext } from './netlify-form-context'
3
3
import GoogleRecaptcha from 'react-google-recaptcha'
4
4
5
- export const Recaptcha = ( { siteKey = '' , invisible = false , ...passThroughProps } ) => {
5
+ export const Recaptcha = ( {
6
+ siteKey = '' ,
7
+ invisible = false ,
8
+ ...passThroughProps
9
+ } ) => {
6
10
const { recaptchaRef } = useNetlifyFormContext ( )
7
11
8
12
return (
9
- < GoogleRecaptcha
10
- { ...passThroughProps }
11
- sitekey = { siteKey }
12
- ref = { recaptchaRef }
13
- { ...( invisible ? { size : 'invisible' } : { } ) }
13
+ < GoogleRecaptcha
14
+ { ...passThroughProps }
15
+ sitekey = { siteKey }
16
+ ref = { recaptchaRef }
17
+ { ...( invisible ? { size : 'invisible' } : { } ) }
14
18
/>
15
19
)
16
20
}
You can’t perform that action at this time.
0 commit comments