mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
5eff354971
GitOrigin-RevId: e75581a43a8694398b20bee3dc5ec69b60db86ab
50 lines
1.9 KiB
TypeScript
50 lines
1.9 KiB
TypeScript
import { Form } from 'react-bootstrap'
|
|
import { useTranslation } from 'react-i18next'
|
|
import getMeta from '../../../utils/meta'
|
|
import SettingsAutoCloseBrackets from './settings/settings-auto-close-brackets'
|
|
import SettingsAutoComplete from './settings/settings-auto-complete'
|
|
import SettingsCompiler from './settings/settings-compiler'
|
|
import SettingsDictionary from './settings/settings-dictionary'
|
|
import SettingsDocument from './settings/settings-document'
|
|
import SettingsEditorTheme from './settings/settings-editor-theme'
|
|
import SettingsFontFamily from './settings/settings-font-family'
|
|
import SettingsFontSize from './settings/settings-font-size'
|
|
import SettingsImageName from './settings/settings-image-name'
|
|
import SettingsKeybindings from './settings/settings-keybindings'
|
|
import SettingsLineHeight from './settings/settings-line-height'
|
|
import SettingsOverallTheme from './settings/settings-overall-theme'
|
|
import SettingsPdfViewer from './settings/settings-pdf-viewer'
|
|
import SettingsSpellCheckLanguage from './settings/settings-spell-check-language'
|
|
import SettingsSyntaxValidation from './settings/settings-syntax-validation'
|
|
|
|
export default function SettingsMenu() {
|
|
const { t } = useTranslation()
|
|
const anonymous = getMeta('ol-anonymous') as boolean | undefined
|
|
|
|
if (anonymous === true || anonymous === undefined) {
|
|
return null
|
|
}
|
|
|
|
return (
|
|
<>
|
|
<h4>{t('settings')}</h4>
|
|
<Form className="settings">
|
|
<SettingsCompiler />
|
|
<SettingsImageName />
|
|
<SettingsDocument />
|
|
<SettingsSpellCheckLanguage />
|
|
<SettingsDictionary />
|
|
<SettingsAutoComplete />
|
|
<SettingsAutoCloseBrackets />
|
|
<SettingsSyntaxValidation />
|
|
<SettingsEditorTheme />
|
|
<SettingsOverallTheme />
|
|
<SettingsKeybindings />
|
|
<SettingsFontSize />
|
|
<SettingsFontFamily />
|
|
<SettingsLineHeight />
|
|
<SettingsPdfViewer />
|
|
</Form>
|
|
</>
|
|
)
|
|
}
|