Skip to content

Commit e8f2e7e

Browse files
committed
Fix fmt
1 parent 1018195 commit e8f2e7e

File tree

4 files changed

+8
-10
lines changed

4 files changed

+8
-10
lines changed

site/src/modules/workspaces/WorkspaceTiming/Chart/Blocks.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const styles = {
5252
gap: spaceBetweenBlocks,
5353
alignItems: "center",
5454
},
55-
block: (theme) =>({
55+
block: (theme) => ({
5656
borderRadius: 4,
5757
height: 18,
5858
backgroundColor: theme.roles.active.background,

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ import {
3232
} from "./Chart/utils";
3333
import type { StageCategory } from "./StagesChart";
3434

35-
36-
3735
type ResourceTiming = {
3836
name: string;
3937
source: string;
@@ -172,5 +170,5 @@ function getLegendsByAction(theme: Theme): Record<string, ChartLegend> {
172170
stroke: theme.roles.active.outline,
173171
},
174172
},
175-
}
173+
};
176174
}

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { type Theme, useTheme } from "@emotion/react";
12
import { type FC, useState } from "react";
23
import { Bar } from "./Chart/Bar";
34
import {
@@ -27,7 +28,6 @@ import {
2728
mergeTimeRanges,
2829
} from "./Chart/utils";
2930
import type { StageCategory } from "./StagesChart";
30-
import { type Theme, useTheme } from "@emotion/react";
3131

3232
type ScriptTiming = {
3333
name: string;
@@ -54,7 +54,7 @@ export const ScriptsChart: FC<ScriptsChartProps> = ({
5454
const [ticks, scale] = makeTicks(totalTime);
5555
const [filter, setFilter] = useState("");
5656
const visibleTimings = timings.filter((t) => t.name.includes(filter));
57-
const theme = useTheme()
57+
const theme = useTheme();
5858
const legendsByStatus = getLegendsByStatus(theme);
5959
const visibleLegends = [...new Set(visibleTimings.map((t) => t.status))].map(
6060
(s) => legendsByStatus[s],
@@ -154,5 +154,5 @@ function getLegendsByStatus(theme: Theme): Record<string, ChartLegend> {
154154
stroke: theme.roles.warning.outline,
155155
},
156156
},
157-
}
158-
};
157+
};
158+
}

site/src/modules/workspaces/WorkspaceTiming/WorkspaceTimings.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { Meta, StoryObj } from "@storybook/react";
22
import { expect, userEvent, waitFor, within } from "@storybook/test";
3+
import { chromatic } from "testHelpers/chromatic";
34
import { WorkspaceTimings } from "./WorkspaceTimings";
45
import { WorkspaceTimingsResponse } from "./storybookData";
5-
import { chromatic } from "testHelpers/chromatic";
66

77
const meta: Meta<typeof WorkspaceTimings> = {
88
title: "modules/workspaces/WorkspaceTimings",
@@ -14,7 +14,7 @@ const meta: Meta<typeof WorkspaceTimings> = {
1414
},
1515
parameters: {
1616
chromatic,
17-
}
17+
},
1818
};
1919

2020
export default meta;

0 commit comments

Comments
 (0)