diff --git a/docs/caseShow/demos/pipeline/taskPipeline/index.tsx b/docs/caseShow/demos/pipeline/taskPipeline/index.tsx index 217809c..fc307f0 100644 --- a/docs/caseShow/demos/pipeline/taskPipeline/index.tsx +++ b/docs/caseShow/demos/pipeline/taskPipeline/index.tsx @@ -6,10 +6,10 @@ import { Background, FlowView, applyEdgeChanges, applyNodeChanges } from '@ant-d import { useCallback, useState } from 'react'; import { edges, nodes } from './data'; import StageNode from './nodes/stageNode'; -import taskNode from './nodes/taskNode'; +import TaskNode from './nodes/taskNode'; import useStyles from './styled'; -const nodeTypes = { taskNode, StageNode }; +const nodeTypes = { TaskNode, StageNode }; function App() { const { styles } = useStyles(); diff --git a/docs/caseShow/demos/pipeline/taskPipeline/nodes/taskContent.tsx b/docs/caseShow/demos/pipeline/taskPipeline/nodes/taskContent.tsx index c929160..3a78f93 100644 --- a/docs/caseShow/demos/pipeline/taskPipeline/nodes/taskContent.tsx +++ b/docs/caseShow/demos/pipeline/taskPipeline/nodes/taskContent.tsx @@ -1,4 +1,3 @@ -import { green, red } from '@ant-design/colors'; import { CheckCircleFilled, ClockCircleFilled, CloseCircleFilled } from '@ant-design/icons'; import useStyles from './styled'; @@ -8,7 +7,7 @@ export const TaskContent = () => { return (