From fcec6740dc4d64252a95a69945d5b4bbe8bbd290 Mon Sep 17 00:00:00 2001 From: ModestFun <61576426+ModestFun@users.noreply.github.com> Date: Sun, 31 Mar 2024 23:57:15 +0800 Subject: [PATCH] :bug: fix: color bug (#97) * :bug: fix: color bug * :bug: fix: rm color --------- Co-authored-by: jiangchu --- docs/caseShow/demos/pipeline/taskPipeline/index.tsx | 4 ++-- .../demos/pipeline/taskPipeline/nodes/taskContent.tsx | 7 +++---- .../demos/pipeline/taskPipeline/nodes/taskNode.tsx | 3 +-- package.json | 2 +- 4 files changed, 7 insertions(+), 9 deletions(-) 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 (