Fic component name
This commit is contained in:
@@ -56,14 +56,14 @@ const fileMenuConfig: EditorMenuConfig = {
|
|||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|
||||||
const editMenuConfig = {
|
const editMenuConfig: EditorMenuConfig = {
|
||||||
name: 'edit',
|
name: 'edit',
|
||||||
label: 'Edit',
|
label: 'Edit',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
items: [],
|
items: [],
|
||||||
}
|
}
|
||||||
|
|
||||||
const viewMenuConfig = {
|
const viewMenuConfig: EditorMenuConfig = {
|
||||||
name: 'view',
|
name: 'view',
|
||||||
label: 'View',
|
label: 'View',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
@@ -72,7 +72,7 @@ const viewMenuConfig = {
|
|||||||
label: 'Reset layout',
|
label: 'Reset layout',
|
||||||
shortcut: 'ctrl+shift+r',
|
shortcut: 'ctrl+shift+r',
|
||||||
shortcutLabel: 'Ctrl Shift R',
|
shortcutLabel: 'Ctrl Shift R',
|
||||||
component: (props) => {
|
Component: (props) => {
|
||||||
const { config, thunkDispatch } = props
|
const { config, thunkDispatch } = props
|
||||||
config.callback = () => thunkDispatch({ type: 'resetLayout' })
|
config.callback = () => thunkDispatch({ type: 'resetLayout' })
|
||||||
return <DropdownItem {...props} />
|
return <DropdownItem {...props} />
|
||||||
@@ -82,7 +82,7 @@ const viewMenuConfig = {
|
|||||||
label: 'All shortcuts',
|
label: 'All shortcuts',
|
||||||
shortcut: 'ctrl+shift+/',
|
shortcut: 'ctrl+shift+/',
|
||||||
shortcutLabel: 'Ctrl Shift /',
|
shortcutLabel: 'Ctrl Shift /',
|
||||||
component: (props) => {
|
Component: (props) => {
|
||||||
const { config } = props
|
const { config } = props
|
||||||
const { toggleOpen } = useShortcutsModalContext()
|
const { toggleOpen } = useShortcutsModalContext()
|
||||||
config.callback = toggleOpen
|
config.callback = toggleOpen
|
||||||
|
|||||||
Reference in New Issue
Block a user