Add recaptcha conditions to the add-email form (#24295)

GitOrigin-RevId: 4b90a73edd2435d6c858ccf790827fb3352069e8
This commit is contained in:
Antoine Clausse
2025-03-26 14:05:23 +01:00
committed by Copybot
parent 346afb9e1c
commit 72d35fa748
2 changed files with 20 additions and 0 deletions
@@ -19,6 +19,7 @@ import { ReCaptcha2 } from '../../../../shared/components/recaptcha-2'
import { useRecaptcha } from '../../../../shared/hooks/use-recaptcha'
import OLCol from '@/features/ui/components/ol/ol-col'
import { ConfirmEmailForm } from '@/features/settings/components/emails/confirm-email-form'
import RecaptchaConditions from '@/shared/components/recaptcha-conditions'
function AddEmail() {
const { t } = useTranslation()
@@ -161,6 +162,15 @@ function AddEmail() {
/>
</>
)
const recaptchaConditions = (
<OLCol>
<Cell>
<div className="affiliations-table-cell-tabbed">
<RecaptchaConditions />
</div>
</Cell>
</OLCol>
)
if (!isValidEmail(newEmail)) {
return (
@@ -180,6 +190,7 @@ function AddEmail() {
<AddNewEmailBtn email={newEmail} disabled />
</Cell>
</OLCol>
{recaptchaConditions}
</Layout>
</form>
)
@@ -237,6 +248,7 @@ function AddEmail() {
</Cell>
</OLCol>
)}
{recaptchaConditions}
</Layout>
</form>
)
@@ -200,6 +200,14 @@
}
}
#settings-page-root {
.recaptcha-branding {
font-size: var(--font-size-01);
text-align: left;
padding: 0 0 var(--spacing-04);
}
}
#settings-page-root,
#action-project-modal {
&#settings-page-root .confirm-email-form {