upgrade rw + lint #521

Merged
Irev-Dev merged 3 commits from kurt/upgrade-rw-lint into main 2021-09-20 11:08:04 +02:00
Showing only changes of commit d43578cc86 - Show all commits

View File

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