fix: more deletion
This commit is contained in:
@ -1,7 +0,0 @@
|
||||
import { useContext } from 'react'
|
||||
|
||||
import { ProjectsMachineContext } from '@src/components/ProjectsContextProvider'
|
||||
|
||||
export const useProjectsContext = () => {
|
||||
return useContext(ProjectsMachineContext)
|
||||
}
|
||||
@ -14,7 +14,6 @@ import { createMachineCommand } from '@src/lib/createMachineCommand'
|
||||
import type { authMachine } from '@src/machines/authMachine'
|
||||
import { commandBarActor } from '@src/machines/commandBarMachine'
|
||||
import type { modelingMachine } from '@src/machines/modelingMachine'
|
||||
import type { projectsMachine } from '@src/machines/projectsMachine'
|
||||
import type { settingsMachine } from '@src/machines/settingsMachine'
|
||||
|
||||
// This might not be necessary, AnyStateMachine from xstate is working
|
||||
@ -22,7 +21,6 @@ export type AllMachines =
|
||||
| typeof modelingMachine
|
||||
| typeof settingsMachine
|
||||
| typeof authMachine
|
||||
| typeof projectsMachine
|
||||
|
||||
interface UseStateMachineCommandsArgs<
|
||||
T extends AllMachines,
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import { CommandBarOverwriteWarning } from '@src/components/CommandBarOverwriteWarning'
|
||||
import { isDesktop } from '@src/lib/isDesktop'
|
||||
import type { Command, CommandArgumentOption } from '@src/lib/commandTypes'
|
||||
|
||||
import {
|
||||
folderSnapshot,
|
||||
defaultProjectFolderNameSnapshot,
|
||||
@ -8,6 +9,15 @@ import {
|
||||
import { systemIOActor } from '@src/lib/singletons'
|
||||
import { SystemIOMachineEvents } from '@src/machines/systemIO/utils'
|
||||
|
||||
export type ProjectsCommandSchema = {
|
||||
'Import file from URL': {
|
||||
name: string
|
||||
code?: string
|
||||
method: 'newProject' | 'existingProject'
|
||||
projectName?: string
|
||||
}
|
||||
}
|
||||
|
||||
export const openProjectCommand: Command = {
|
||||
icon: 'arrowRight',
|
||||
name: 'Open projecct',
|
||||
|
||||
Reference in New Issue
Block a user