Skip to content

Commit 0d82fc0

Browse files
committed
[TOOL-3584] Dashboad: Move turnstile widget above connect embed in login page (#6394)
1 parent ef6029b commit 0d82fc0

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

apps/dashboard/src/app/login/LoginPage.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,16 @@ function CustomConnectEmbed(props: {
222222

223223
return (
224224
<div className="flex flex-col items-center gap-4">
225+
<Turnstile
226+
options={{
227+
// only show if interaction is required
228+
appearance: "interaction-only",
229+
// match the theme of the rest of the app
230+
theme: theme === "light" ? "light" : "dark",
231+
}}
232+
siteKey={TURNSTILE_SITE_KEY}
233+
onSuccess={(token) => setTurnstileToken(token)}
234+
/>
225235
<ConnectEmbed
226236
auth={{
227237
getLoginPayload,
@@ -255,16 +265,6 @@ function CustomConnectEmbed(props: {
255265
privacyPolicyUrl="/privacy-policy"
256266
termsOfServiceUrl="/terms"
257267
/>
258-
<Turnstile
259-
options={{
260-
// only show if interaction is required
261-
appearance: "interaction-only",
262-
// match the theme of the rest of the app
263-
theme: theme === "light" ? "light" : "dark",
264-
}}
265-
siteKey={TURNSTILE_SITE_KEY}
266-
onSuccess={(token) => setTurnstileToken(token)}
267-
/>
268268
</div>
269269
);
270270
}

0 commit comments

Comments
 (0)