feat: remove JSONWorkflowDesigner TSX wrapper (already JSON component)

This commit is contained in:
2026-01-21 05:03:36 +00:00
parent 06cca3cd9c
commit ebe0a8acf8

View File

@@ -1,18 +0,0 @@
import { PageRenderer } from '@/lib/json-ui/page-renderer'
import workflowDesignerSchema from '@/config/pages/workflow-designer.json'
import { PageSchema } from '@/types/json-ui'
interface JSONWorkflowDesignerProps {
workflows: any[]
onWorkflowsChange: (updater: (workflows: any[]) => any[]) => void
}
export function JSONWorkflowDesigner({ workflows, onWorkflowsChange }: JSONWorkflowDesignerProps) {
const schema = workflowDesignerSchema as PageSchema
const handleCustomAction = async (action: any, event?: any) => {
console.log('[JSONWorkflowDesigner] Custom action:', action, event)
}
return <PageRenderer schema={schema} onCustomAction={handleCustomAction} />
}