mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 22:23:42 +01:00
Merge pull request #36407 from overleaf/mj-tabs-teardown
[web] Tear down tabs feature flag GitOrigin-RevId: c25a3abe5c4b85f9802751bb1882385ed9c50a4a
This commit is contained in:
committed by
Copybot
parent
57697c6c56
commit
06b4124aca
@@ -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')}
|
||||
|
||||
Reference in New Issue
Block a user