Update menuConfig.tsx
This commit is contained in:
@@ -68,6 +68,16 @@ const viewMenuConfig: EditorMenuConfig = {
|
|||||||
label: 'View',
|
label: 'View',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
items: [
|
items: [
|
||||||
|
{
|
||||||
|
label: 'Hide console',
|
||||||
|
shortcut: 'ctrl+shift+c',
|
||||||
|
shortcutLabel: 'Ctrl Shift C',
|
||||||
|
Component: (props) => {
|
||||||
|
const { config, thunkDispatch } = props
|
||||||
|
config.callback = () => thunkDispatch({ type: 'setLayout', payload:{ message:{ direction: 'row', first: 'Editor', second: 'Viewer'}}})
|
||||||
|
return <DropdownItem {...props} />
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Reset layout',
|
label: 'Reset layout',
|
||||||
shortcut: 'ctrl+shift+r',
|
shortcut: 'ctrl+shift+r',
|
||||||
|
|||||||
Reference in New Issue
Block a user