overleaf/services/web/frontend/js/pages/user/settings.js
Mathias Jakobsen af76768eb7 Merge pull request #13372 from overleaf/mj-captcha-add-email
[web] Add recaptcha to add-email

GitOrigin-RevId: 0540e0dbc3103dcaac87dd7fabeedbc5892c371c
2023-07-17 10:40:08 +00:00

17 lines
531 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,
}
if (element) {
ReactDOM.render(<SettingsPageRoot />, element)
}