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'
22import { useNetlifyFormContext } from './netlify-form-context'
33import GoogleRecaptcha from 'react-google-recaptcha'
44
5- export const Recaptcha = ( { siteKey = '' , invisible = false , ...passThroughProps } ) => {
5+ export const Recaptcha = ( {
6+ siteKey = '' ,
7+ invisible = false ,
8+ ...passThroughProps
9+ } ) => {
610 const { recaptchaRef } = useNetlifyFormContext ( )
711
812 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' } : { } ) }
1418 />
1519 )
1620}
You can’t perform that action at this time.
0 commit comments