Skip to content

Commit

Permalink
🐛 fix: rm color
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangchu committed Mar 31, 2024
1 parent 6cc17cf commit 9a7e41b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/caseShow/demos/pipeline/taskPipeline/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 1 addition & 2 deletions docs/caseShow/demos/pipeline/taskPipeline/nodes/taskNode.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { green } from '@ant-design/colors';
import { CheckCircleFilled } from '@ant-design/icons';
import { Handle, Position } from '@ant-design/pro-flow';
import { useState } from 'react';
Expand Down Expand Up @@ -35,7 +34,7 @@ const TaskNode = (props: { data: TaskNodeC }) => {
className={styles.taskNode}
style={{ justifyContent: `${data.children ? 'space-between' : 'flex-start'}` }}
>
<CheckCircleFilled style={{ color: green[5], fontSize: 14 }} />
<CheckCircleFilled style={{ color: '#008000', fontSize: 14 }} />
<div className="title">{data.title}</div>
{data.children && (
<div
Expand Down

0 comments on commit 9a7e41b

Please sign in to comment.