Files
Verso/services/web/frontend/js/features/settings/components/appearance-settings/line-height-setting.tsx
T
Davinder Singh d03ae68294 Merge pull request #31606 from overleaf/ds-editor-settings-tear-down
Tearing down of old Editor (Settings)

GitOrigin-RevId: d9e23e61a8e34eb22e9c9e3453a157fb275f68f0
2026-03-06 09:06:43 +00:00

32 lines
770 B
TypeScript

import { useProjectSettingsContext } from '@/features/editor-left-menu/context/project-settings-context'
import { useTranslation } from 'react-i18next'
import DropdownSetting from '../dropdown-setting'
export default function LineHeightSetting() {
const { lineHeight, setLineHeight } = useProjectSettingsContext()
const { t } = useTranslation()
return (
<DropdownSetting
id="lineHeight"
label={t('editor_line_height')}
options={[
{
value: 'compact',
label: t('compact'),
},
{
value: 'normal',
label: t('normal'),
},
{
value: 'wide',
label: t('wide'),
},
]}
onChange={setLineHeight}
value={lineHeight}
/>
)
}