Skip to content

Commit

Permalink
resolve linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
jenny-s51 committed Apr 5, 2024
1 parent fef9725 commit 506a5cd
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
10 changes: 5 additions & 5 deletions frontend/src/concepts/topology/TaskEdge.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ const TaskEdge: React.FunctionComponent<TaskEdgeProps> = ({
d={integralShapePath(startPoint, endPoint, startIndent, nodeSeparation, verticalLayout)}
shapeRendering="geometricPrecision"
/>
<ConnectorArrow
className={styles.topologyEdge}
startPoint={endPoint.clone().translate(0, -1)}
endPoint={endPoint}
/>
<ConnectorArrow
className={styles.topologyEdge}
startPoint={endPoint.clone().translate(0, -1)}
endPoint={endPoint}
/>
</g>
);
};
Expand Down
38 changes: 19 additions & 19 deletions frontend/src/concepts/topology/customNodes/StandardTaskNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,25 +37,25 @@ const StandardTaskNode: React.FunctionComponent<StandardTaskNodeProps> = ({

return (
<g ref={hoverRef as React.LegacyRef<SVGGElement>}>
<TaskNode
element={element}
onSelect={onSelect}
selected={selected}
scaleNode={hover && detailsLevel !== ScaleDetailsLevel.high}
status={data?.status}
hideDetailsAtMedium
hiddenDetailsShownStatuses={[
RunStatus.Succeeded,
RunStatus.Cancelled,
RunStatus.Failed,
RunStatus.Running,
]}
whenOffset={data?.whenStatus ? DEFAULT_WHEN_OFFSET : 0}
whenSize={data?.whenStatus ? DEFAULT_WHEN_SIZE : 0}
{...rest}
>
{whenDecorator}
</TaskNode>
<TaskNode
element={element}
onSelect={onSelect}
selected={selected}
scaleNode={hover && detailsLevel !== ScaleDetailsLevel.high}
status={data?.status}
hideDetailsAtMedium
hiddenDetailsShownStatuses={[
RunStatus.Succeeded,
RunStatus.Cancelled,
RunStatus.Failed,
RunStatus.Running,
]}
whenOffset={data?.whenStatus ? DEFAULT_WHEN_OFFSET : 0}
whenSize={data?.whenStatus ? DEFAULT_WHEN_SIZE : 0}
{...rest}
>
{whenDecorator}
</TaskNode>
</g>
);
};
Expand Down

0 comments on commit 506a5cd

Please sign in to comment.