mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #34195 from overleaf/mj-command-palette-menu-labels
[web] Add menu labels to commands, and add more commands to command palette GitOrigin-RevId: 21e17142bb3112b5fdcda85a472122b011979f49
This commit is contained in:
committed by
Copybot
parent
cabe0046c5
commit
b7735d402d
@@ -180,7 +180,8 @@ export const RailLayout = () => {
|
||||
handler: () => {
|
||||
setLeftMenuShown(true)
|
||||
},
|
||||
label: t('settings'),
|
||||
menuLabel: t('settings'),
|
||||
label: t('open_settings'),
|
||||
},
|
||||
],
|
||||
[t, setLeftMenuShown]
|
||||
|
||||
@@ -122,7 +122,7 @@ const CommandDropdownChild = ({ item }: { item: Entry<TaggedCommand> }) => {
|
||||
<MenuBarOption
|
||||
eventKey={item.id}
|
||||
key={item.id}
|
||||
title={item.label}
|
||||
title={item.menuLabel ?? item.label}
|
||||
// eslint-disable-next-line react/jsx-handler-names
|
||||
onClick={onClickHandler}
|
||||
href={item.href}
|
||||
|
||||
Reference in New Issue
Block a user