mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
Add loading spinner to Cloudflare popup during Turnstile verification
This commit is contained in:
@@ -282,7 +282,7 @@ function CloudflarePopup({file}: { file: RFile }) {
|
||||
<span className={"loading loading-spinner loading-lg"}></span>
|
||||
</div> : null
|
||||
}
|
||||
<Turnstile siteKey={app.cloudflareTurnstileSiteKey!} onLoad={() => {
|
||||
<Turnstile siteKey={app.cloudflareTurnstileSiteKey!} onWidgetLoad={() => {
|
||||
setLoading(false)
|
||||
}} onSuccess={(token) => {
|
||||
closePopup();
|
||||
|
Reference in New Issue
Block a user