Skip to content

Commit 917c002

Browse files
committed
fix style
1 parent f5e99b3 commit 917c002

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -32,22 +32,22 @@ set the `autoResetOnExpire` prop to true or reset the widget yourself using the
3232

3333
Turnstile takes the following arguments:
3434

35-
| name | type | description |
36-
| ----------------- | ------- | -------------------------------------------------------- |
37-
| sitekey | string | sitekey of your website (REQUIRED) |
38-
| action | string | - |
39-
| cData | string | - |
40-
| theme | string | one of "light", "dark", "auto" |
41-
| tabIndex | number | - |
42-
| responseField | boolean | controls generation of `<input />` element |
43-
| responseFieldName | string | changes the name of `<input />` element |
44-
| retry | string | one of "auto", "never" |
45-
| retryInterval | number | interval of retries in ms |
46-
| autoResetOnExpire | boolean | automatically reset the widget when the token expires |
47-
| id | string | id of the div |
48-
| ref | Ref | custom react ref for the div |
49-
| className | string | passed to the div |
50-
| style | object | passed to the div |
35+
| name | type | description |
36+
| ----------------- | ------- | ----------------------------------------------------- |
37+
| sitekey | string | sitekey of your website (REQUIRED) |
38+
| action | string | - |
39+
| cData | string | - |
40+
| theme | string | one of "light", "dark", "auto" |
41+
| tabIndex | number | - |
42+
| responseField | boolean | controls generation of `<input />` element |
43+
| responseFieldName | string | changes the name of `<input />` element |
44+
| retry | string | one of "auto", "never" |
45+
| retryInterval | number | interval of retries in ms |
46+
| autoResetOnExpire | boolean | automatically reset the widget when the token expires |
47+
| id | string | id of the div |
48+
| ref | Ref | custom react ref for the div |
49+
| className | string | passed to the div |
50+
| style | object | passed to the div |
5151

5252
And the following callbacks:
5353

src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ export default function Turnstile({
9393
callback: (token: string) => inplaceState.onVerify(token),
9494
"error-callback": () => inplaceState.onError?.(),
9595
"expired-callback": () => {
96-
inplaceState.onExpire?.()
97-
if(autoResetOnExpire) window.turnstile.reset(widgetId);
96+
inplaceState.onExpire?.();
97+
if (autoResetOnExpire) window.turnstile.reset(widgetId);
9898
},
9999
"timeout-callback": () => inplaceState.onTimeout?.(),
100100
"response-field": responseField,

0 commit comments

Comments
 (0)