Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80631df

Browse files
committed
make fmt
1 parent402a21a commit80631df

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-
constlabel=isStageBoundary(t.name) ?"total stage duration" :t.name
94-
return<YAxisLabelkey={label}id={encodeURIComponent(t.name)}>
95-
{label}
96-
</YAxisLabel>
93+
constlabel=isStageBoundary(t.name)
94+
?"total stage duration"
95+
:t.name;
96+
return(
97+
<YAxisLabelkey={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
conststageBoundary=isStageBoundary(t.name);
106110
constduration=calcDuration(t.range);
107111
constlegend=legendsByAction[t.action]??{label:t.action};
108-
constlabel=stageBoundary ?"total stage duration" :t.name
112+
constlabel=stageBoundary ?"total stage duration" :t.name;
109113

110114
return(
111115
<XAxisRow

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp