File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
apps/dashboard/src/app/login Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments