Fic component name

This commit is contained in:
Kurt Hutten
2021-09-20 18:48:32 +10:00
parent 7da61d9ce6
commit d43578cc86

View File

@@ -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