Various linting fixes

This commit is contained in:
Kurt Hutten
2021-09-20 18:14:51 +10:00
parent 39ce35b219
commit 7da61d9ce6
12 changed files with 11 additions and 43 deletions

View File

@@ -18,7 +18,7 @@ const fileMenuConfig: EditorMenuConfig = {
label: 'Save & Render',
shortcut: 'ctrl+s, command+s',
shortcutLabel: cmdOrCtrl() + ' S',
component: (props) => {
Component: (props) => {
const { state, config } = props
const handleRender = useRender()
const saveCode = useSaveCode()
@@ -37,7 +37,7 @@ const fileMenuConfig: EditorMenuConfig = {
label: 'Download STL',
shortcut: 'ctrl+shift+d, command+shift+d',
shortcutLabel: cmdOrCtrl() + ' Shift D',
component: (props) => {
Component: (props) => {
const { state, thunkDispatch, config } = props
const handleStlDownload = makeStlDownloadHandler({
type: state.objectData?.type,
@@ -98,7 +98,7 @@ export interface EditorMenuItemConfig {
label: string
shortcut: string
shortcutLabel: React.ReactElement | string
component: (props: any) => React.ReactElement
Component: (props: any) => React.ReactElement
}
export interface EditorMenuConfig {