Skip to content

Commit

Permalink
[TOOL-3584] Dashboad: Move turnstile widget above connect embed in lo…
Browse files Browse the repository at this point in the history
…gin page (#6394)
  • Loading branch information
MananTank committed Mar 3, 2025
1 parent ef6029b commit 0d82fc0
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/dashboard/src/app/login/LoginPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,16 @@ function CustomConnectEmbed(props: {

return (
<div className="flex flex-col items-center gap-4">
<Turnstile
options={{
// only show if interaction is required
appearance: "interaction-only",
// match the theme of the rest of the app
theme: theme === "light" ? "light" : "dark",
}}
siteKey={TURNSTILE_SITE_KEY}
onSuccess={(token) => setTurnstileToken(token)}
/>
<ConnectEmbed
auth={{
getLoginPayload,
Expand Down Expand Up @@ -255,16 +265,6 @@ function CustomConnectEmbed(props: {
privacyPolicyUrl="/privacy-policy"
termsOfServiceUrl="/terms"
/>
<Turnstile
options={{
// only show if interaction is required
appearance: "interaction-only",
// match the theme of the rest of the app
theme: theme === "light" ? "light" : "dark",
}}
siteKey={TURNSTILE_SITE_KEY}
onSuccess={(token) => setTurnstileToken(token)}
/>
</div>
);
}

0 comments on commit 0d82fc0

Please sign in to comment.