[web] Add reCAPTCHA conditions to /user/emails/add-secondary (#24528)

* Add RecaptchaConditions to `user/emails/add-secondary`, set font to 12px

* Hide `RecaptchaConditions` if `ExposedSettings.recaptchaDisabled.addEmail`

GitOrigin-RevId: dcc4609bf8787076257caed6b5a5d1e47178380e
This commit is contained in:
Antoine Clausse
2025-03-27 09:05:47 +00:00
committed by Copybot
parent fa058a5ca8
commit 2f0254a2c8
3 changed files with 9 additions and 2 deletions
@@ -10,6 +10,8 @@ import { ReCaptcha2 } from '../../../../shared/components/recaptcha-2'
import { useRecaptcha } from '../../../../shared/hooks/use-recaptcha'
import { postJSON } from '../../../../infrastructure/fetch-json'
import RecaptchaConditions from '@/shared/components/recaptcha-conditions'
import getMeta from '@/utils/meta'
type AddSecondaryEmailError = {
name: string
@@ -109,6 +111,11 @@ export function AddSecondaryEmailPrompt() {
</p>
</form>
</Interstitial>
{!getMeta('ol-ExposedSettings').recaptchaDisabled?.addEmail && (
<div className="mt-5">
<RecaptchaConditions />
</div>
)}
</>
)
}