File tree Expand file tree Collapse file tree 1 file changed +18
-22
lines changed Expand file tree Collapse file tree 1 file changed +18
-22
lines changed Original file line number Diff line number Diff line change @@ -17,34 +17,30 @@ enum GoogleRecaptchaError {
17
17
SCRIPT_NOT_AVAILABLE = 'Recaptcha script is not available'
18
18
}
19
19
20
- interface IScriptProps {
21
- nonce ?: string ;
22
- defer ?: boolean ;
23
- async ?: boolean ;
24
- appendTo ?: 'head' | 'body' ;
25
- id ?: string ;
26
- onLoadCallbackName ?: string ;
27
- }
28
-
29
- interface IParameters {
30
- sitekey ?: string ;
31
- badge ?: string ;
32
- theme ?: string ;
33
- size ?: string ;
34
- tabindex ?: number ;
35
- callback ?: ( ) => void ;
36
- expiredCallback ?: ( ) => void ;
37
- errorCallback ?: ( ) => void ;
38
- }
39
-
40
20
interface IGoogleReCaptchaProviderProps {
41
21
reCaptchaKey : string ;
42
22
language ?: string ;
43
23
useRecaptchaNet ?: boolean ;
44
24
useEnterprise ?: boolean ;
45
- scriptProps ?: IScriptProps ;
25
+ scriptProps ?: {
26
+ nonce ?: string ;
27
+ defer ?: boolean ;
28
+ async ?: boolean ;
29
+ appendTo ?: 'head' | 'body' ;
30
+ id ?: string ;
31
+ onLoadCallbackName ?: string ;
32
+ } ;
46
33
inlineBadgeId ?: string | HTMLElement ;
47
- parameters ?: IParameters ;
34
+ parameters ?: {
35
+ sitekey ?: string ;
36
+ badge ?: string ;
37
+ theme ?: string ;
38
+ size ?: string ;
39
+ tabindex ?: number ;
40
+ callback ?: ( ) => void ;
41
+ expiredCallback ?: ( ) => void ;
42
+ errorCallback ?: ( ) => void ;
43
+ } ;
48
44
children : ReactNode ;
49
45
}
50
46
You can’t perform that action at this time.
0 commit comments