Hide console option in view menu #545

Merged
hrgdavor merged 7 commits from feat-hide-console into main 2021-10-12 11:44:16 +02:00
Showing only changes of commit 7be28e2a76 - Show all commits

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',