more clean up (#889)

This commit is contained in:
Kurt Hutten
2023-10-17 20:08:17 +11:00
committed by GitHub
parent ba8f5d9785
commit 0aa2a6cee7
3 changed files with 2 additions and 4 deletions

View File

@ -24,9 +24,7 @@ import {
StateFrom,
} from 'xstate'
import { useCommandsContext } from 'hooks/useCommandsContext'
import { invoke } from '@tauri-apps/api'
import { isTauri } from 'lib/isTauri'
import { VITE_KC_API_BASE_URL } from 'env'
type MachineContext<T extends AnyStateMachine> = {
state: StateFrom<T>

View File

@ -27,7 +27,7 @@ import {
addLineHighlight,
lineHighlightField,
} from 'editor/highlightextension'
import { isOverlap, roundOff } from 'lib/utils'
import { roundOff } from 'lib/utils'
import { kclErrToDiagnostic } from 'lang/errors'
import { CSSRuleObject } from 'tailwindcss/types/config'
import { useModelingContext } from 'hooks/useModelingContext'

View File

@ -787,7 +787,7 @@ export const modelingMachine = createMachine(
},
})
},
'hide default planes': ({}) => {
'hide default planes': () => {
kclManager.hidePlanes()
},
edit_mode_exit: () =>