Skip to content

Commit 73687e5

Browse files
committed
make fmt
1 parent 716df4b commit 73687e5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

site/src/modules/workspaces/WorkspaceTiming/ResourcesChart.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,14 @@ export const ResourcesChart: FC<ResourcesChartProps> = ({
9090
<YAxisHeader>{stage.name} stage</YAxisHeader>
9191
<YAxisLabels>
9292
{visibleTimings.map((t) => {
93-
const label = isStageBoundary(t.name) ? "total stage duration" : t.name
94-
return <YAxisLabel key={label} id={encodeURIComponent(t.name)}>
95-
{label}
96-
</YAxisLabel>
93+
const label = isStageBoundary(t.name)
94+
? "total stage duration"
95+
: t.name;
96+
return (
97+
<YAxisLabel key={label} id={encodeURIComponent(t.name)}>
98+
{label}
99+
</YAxisLabel>
100+
);
97101
})}
98102
</YAxisLabels>
99103
</YAxisSection>
@@ -105,7 +109,7 @@ export const ResourcesChart: FC<ResourcesChartProps> = ({
105109
const stageBoundary = isStageBoundary(t.name);
106110
const duration = calcDuration(t.range);
107111
const legend = legendsByAction[t.action] ?? { label: t.action };
108-
const label = stageBoundary ? "total stage duration" : t.name
112+
const label = stageBoundary ? "total stage duration" : t.name;
109113

110114
return (
111115
<XAxisRow

0 commit comments

Comments
 (0)