Update menuConfig.tsx

This commit is contained in:
Davor Hrg
2021-10-04 23:37:18 +02:00
parent 5efaec4df0
commit 7be28e2a76

View File

@@ -68,6 +68,16 @@ const viewMenuConfig: EditorMenuConfig = {
label: 'View',
disabled: false,
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',
shortcut: 'ctrl+shift+r',