mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #34923 from overleaf/mj-left-menu-field
[web] Clean up "left menu" concepts in new editor GitOrigin-RevId: 9597c1c53af15f3a1587e62176bca36cd7c9069c
This commit is contained in:
committed by
Copybot
parent
5dd2c425ac
commit
75f7f82a3f
@@ -73,7 +73,7 @@ export const RailLayout = () => {
|
||||
const gitBridgeEnabled = getMeta('ol-gitBridgeEnabled')
|
||||
const { isOverleaf } = getMeta('ol-ExposedSettings')
|
||||
|
||||
const { view, setLeftMenuShown, focusMode } = useLayoutContext()
|
||||
const { view, setSettingsShown, focusMode } = useLayoutContext()
|
||||
|
||||
const { markMessagesAsRead } = useChatContext()
|
||||
|
||||
@@ -166,11 +166,11 @@ export const RailLayout = () => {
|
||||
title: t('settings'),
|
||||
action: () => {
|
||||
sendEvent('rail-click', { tab: 'settings' })
|
||||
setLeftMenuShown(true)
|
||||
setSettingsShown(true)
|
||||
},
|
||||
},
|
||||
],
|
||||
[setLeftMenuShown, t, sendEvent]
|
||||
[setSettingsShown, t, sendEvent]
|
||||
)
|
||||
|
||||
useCommandProvider(
|
||||
@@ -178,13 +178,13 @@ export const RailLayout = () => {
|
||||
{
|
||||
id: 'open-settings',
|
||||
handler: () => {
|
||||
setLeftMenuShown(true)
|
||||
setSettingsShown(true)
|
||||
},
|
||||
menuLabel: t('settings'),
|
||||
label: t('open_settings'),
|
||||
},
|
||||
],
|
||||
[t, setLeftMenuShown]
|
||||
[t, setSettingsShown]
|
||||
)
|
||||
|
||||
const onTabSelect = useCallback(
|
||||
|
||||
Reference in New Issue
Block a user