Merge pull request #22902 from overleaf/dp-remove-presentation-mode-flag

Remove pdf-presentation-mode feature flag

GitOrigin-RevId: 14e64115c539fe2721150ed6f09dfcc4ce9cbaaa
This commit is contained in:
David
2025-01-16 10:02:10 +00:00
committed by Copybot
parent 849275c4b8
commit c919960d2b
2 changed files with 1 additions and 5 deletions

View File

@@ -341,7 +341,6 @@ const _ProjectController = {
'pdf-caching-mode',
'pdf-caching-prefetch-large',
'pdf-caching-prefetching',
'pdf-presentation-mode',
'revert-file',
'revert-project',
'review-panel-redesign',

View File

@@ -3,7 +3,6 @@ import { useEffect, useState } from 'react'
import { useTranslation } from 'react-i18next'
import ControlledDropdown from '@/shared/components/controlled-dropdown'
import classNames from 'classnames'
import { useFeatureFlag } from '@/shared/context/split-test-context'
import BootstrapVersionSwitcher from '@/features/ui/components/bootstrap-5/bootstrap-version-switcher'
import {
Dropdown,
@@ -49,8 +48,6 @@ function PdfZoomDropdown({
}: PdfZoomDropdownProps) {
const { t } = useTranslation()
const enablePresentationMode = useFeatureFlag('pdf-presentation-mode')
const [customZoomValue, setCustomZoomValue] = useState<string>(
rawScaleToPercentage(rawScale)
)
@@ -59,7 +56,7 @@ function PdfZoomDropdown({
setCustomZoomValue(rawScaleToPercentage(rawScale))
}, [rawScale])
const showPresentOption = enablePresentationMode && document.fullscreenEnabled
const showPresentOption = document.fullscreenEnabled
return (
<BootstrapVersionSwitcher