Update TradeModal.svelte
This commit is contained in:
parent
9a99f934b6
commit
519236913e
1 changed files with 26 additions and 25 deletions
|
|
@ -213,31 +213,32 @@
|
||||||
</Badge>
|
</Badge>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<div>
|
{#if showCaptcha}
|
||||||
<Turnstile
|
<div>
|
||||||
siteKey={PUBLIC_TURNSTILE_SITE_KEY}
|
<Turnstile
|
||||||
theme="auto"
|
siteKey={PUBLIC_TURNSTILE_SITE_KEY}
|
||||||
size="normal"
|
theme="auto"
|
||||||
bind:reset={turnstileReset}
|
size="normal"
|
||||||
on:callback={(e: CustomEvent<{ token: string }>) => {
|
bind:reset={turnstileReset}
|
||||||
turnstileToken = e.detail.token;
|
on:callback={(e: CustomEvent<{ token: string }>) => {
|
||||||
turnstileError = '';
|
turnstileToken = e.detail.token;
|
||||||
}}
|
turnstileError = '';
|
||||||
on:error={(e: CustomEvent<{ code: string }>) => {
|
}}
|
||||||
turnstileToken = '';
|
on:error={(e: CustomEvent<{ code: string }>) => {
|
||||||
turnstileError = e.detail.code || 'Captcha error';
|
turnstileToken = '';
|
||||||
}}
|
turnstileError = e.detail.code || 'Captcha error';
|
||||||
on:expired={() => {
|
}}
|
||||||
turnstileToken = '';
|
on:expired={() => {
|
||||||
turnstileError = 'Captcha expired';
|
turnstileToken = '';
|
||||||
}}
|
turnstileError = 'Captcha expired';
|
||||||
execution="render"
|
}}
|
||||||
appearance="always"
|
execution="render"
|
||||||
/>
|
appearance="always"
|
||||||
{#if turnstileError}
|
/>
|
||||||
<p class="text-destructive mt-1 text-xs">{turnstileError}</p>
|
{#if turnstileError}
|
||||||
{/if}
|
<p class="text-destructive mt-1 text-xs">{turnstileError}</p>
|
||||||
</div>
|
{/if}
|
||||||
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue