Skip to content

Commit 4e40121

Browse files
committed
removed unnecessary types
1 parent f89b99f commit 4e40121

File tree

1 file changed

+18
-22
lines changed

1 file changed

+18
-22
lines changed

src/google-recaptcha-provider.tsx

Lines changed: 18 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -17,34 +17,30 @@ enum GoogleRecaptchaError {
1717
SCRIPT_NOT_AVAILABLE = 'Recaptcha script is not available'
1818
}
1919

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-
4020
interface IGoogleReCaptchaProviderProps {
4121
reCaptchaKey: string;
4222
language?: string;
4323
useRecaptchaNet?: boolean;
4424
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+
};
4633
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+
};
4844
children: ReactNode;
4945
}
5046

0 commit comments

Comments
 (0)