Merge pull request #36407 from overleaf/mj-tabs-teardown

[web] Tear down tabs feature flag

GitOrigin-RevId: c25a3abe5c4b85f9802751bb1882385ed9c50a4a
This commit is contained in:
Mathias Jakobsen
2026-09-17 11:53:28 +00:00
committed by Copybot
parent 57697c6c56
commit 06b4124aca
7 changed files with 14 additions and 44 deletions
@@ -26,7 +26,6 @@ import getMeta from '@/utils/meta'
import EditorCloneProjectModalWrapper from '@/features/clone-project-modal/components/editor-clone-project-modal-wrapper'
import useOpenProject from '@/shared/hooks/use-open-project'
import importOverleafModules from '../../../../../macros/import-overleaf-module.macro'
import { useFeatureFlag } from '@/shared/context/split-test-context'
import ReviewModeOptions from './review-mode-options'
const menubarExtraComponents = importOverleafModules(
@@ -54,8 +53,6 @@ export const ToolbarMenuBar = () => {
const showSupport = getMeta('ol-showSupport')
const showDocumentation = getMeta('ol-wikiEnabled')
const hasEditorTabs = useFeatureFlag('editor-tabs')
useCommandProvider(
() => [
{
@@ -291,16 +288,14 @@ export const ToolbarMenuBar = () => {
}
onClick={toggleBreadcrumbs}
/>
{hasEditorTabs && (
<MenuBarOption
eventKey="show_editor_tabs"
title={t('show_editor_tabs')}
leadingIcon={
editorTabs ? 'check' : <OLDropdownItem.EmptyLeadingIcon />
}
onClick={toggleEditorTabs}
/>
)}
<MenuBarOption
eventKey="show_editor_tabs"
title={t('show_editor_tabs')}
leadingIcon={
editorTabs ? 'check' : <OLDropdownItem.EmptyLeadingIcon />
}
onClick={toggleEditorTabs}
/>
<MenuBarOption
eventKey="show_equation_preview"
title={t('show_equation_preview')}