overleaf/services/web/frontend/js/pages/user/settings.jsx
Mathias Jakobsen c1a9085a11 Merge pull request #15314 from overleaf/mj-email-captcha
[web] Use recaptcha.net for captcha when adding email

GitOrigin-RevId: 51e7a4792414ca9c8c3f167a359b6e637230991d
2023-10-19 08:03:09 +00:00

18 lines
556 B
JavaScript

import '../../marketing'
import './../../utils/meta'
import './../../utils/webpack-public-path'
import './../../infrastructure/error-reporter'
import './../../i18n'
import '../../features/settings/components/root'
import ReactDOM from 'react-dom'
import SettingsPageRoot from '../../features/settings/components/root.tsx'
const element = document.getElementById('settings-page-root')
// For react-google-recaptcha
window.recaptchaOptions = {
enterprise: true,
useRecaptchaNet: true,
}
if (element) {
ReactDOM.render(<SettingsPageRoot />, element)
}