mirror of
https://git.rdcenter.ru/RDCenter/skb-kit.git
synced 2026-12-05 04:39:45 +00:00
Фикс отображения капчи
This commit is contained in:
1 parent
efce819052
commit
683956c010
2 files changed
+9
-5
No files matched your search
@@ -137,22 +137,25 @@ function ContactForm() {
|
||||
isDisabled={isSubmitting}
|
||||
/>
|
||||
<div className="submit-container">
|
||||
{formData.captcha ? (
|
||||
{formData.captcha &&
|
||||
<Field
|
||||
key={5}
|
||||
type="submit"
|
||||
value={isSubmitting ? 'Отправляется' : 'Отправить'}
|
||||
isDisabled={isSubmitting}
|
||||
/>
|
||||
) : (
|
||||
}
|
||||
<div
|
||||
className="captcha-container"
|
||||
style={formData.captcha ? { display: 'none' } : { display: 'block' }}
|
||||
>
|
||||
<SmartCaptcha
|
||||
key={6}
|
||||
sitekey="ysc1_8nFqhYasby2fJ9J7pCTxdBMe0Xc3Y6CrWk4aylB03d4f0045"
|
||||
onSuccess={handleCaptchaChange}
|
||||
onTokenExpired={handleTokenExpired}
|
||||
style={formData.captcha ? { display: 'none' } : { display: 'block' }}
|
||||
/>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -124,4 +124,5 @@ $color-file-button: rgb(7, 42, 200);
|
||||
line-height: normal;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user