Skip to content

Commit 62c60d5

Browse files
authored
Fix prettier issues (#569)
1 parent 81e4460 commit 62c60d5

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
import React from "react";
22

33
export interface StageNodeLinkProps {
4-
agent: string;
4+
agent: string;
55
}
66

77
function getAgentUrl(name: string) {
8-
// Wrap built-in in brackets
9-
const id = name == "built-in" ? "(built-in)" : name;
10-
const rootPath = document.head.dataset.rooturl
11-
return `${rootPath}/computer/${id}/`;
8+
// Wrap built-in in brackets
9+
const id = name == "built-in" ? "(built-in)" : name;
10+
const rootPath = document.head.dataset.rooturl;
11+
return `${rootPath}/computer/${id}/`;
1212
}
1313

14-
const StageNodeLink = ({agent}: StageNodeLinkProps) => {
15-
const agentName = agent == "built-in" ? "Jenkins" : agent;
16-
const href = getAgentUrl(agent);
17-
return <>
18-
Running on <a href={href}>{agentName}</a>
14+
const StageNodeLink = ({ agent }: StageNodeLinkProps) => {
15+
const agentName = agent == "built-in" ? "Jenkins" : agent;
16+
const href = getAgentUrl(agent);
17+
return (
18+
<>
19+
Running on <a href={href}>{agentName}</a>
1920
</>
21+
);
2022
};
2123

2224
export default StageNodeLink;

src/main/frontend/pipeline-console-view/pipeline-console/main/StageView.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ const StageSummary = (props: StageSummaryProps) => (
9292
className="detail-icon"
9393
key={`stage-detail-agent-icon-${props.stage.id}`}
9494
/>
95-
<span
96-
key={`stage-detail-agent-text-${props.stage.id}`}
97-
>
95+
<span key={`stage-detail-agent-text-${props.stage.id}`}>
9896
<StageNodeLink agent={props.stage.agent} />
9997
</span>
10098
</div>

0 commit comments

Comments
 (0)