fix: more deletion

This commit is contained in:
Kevin Nadro
2025-04-22 13:03:05 -05:00
parent 81d6c4c1b3
commit b6d0ad0a9b
3 changed files with 10 additions and 9 deletions

View File

@ -1,7 +0,0 @@
import { useContext } from 'react'
import { ProjectsMachineContext } from '@src/components/ProjectsContextProvider'
export const useProjectsContext = () => {
return useContext(ProjectsMachineContext)
}

View File

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

View File

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