Skip to content

Commit 4edd21a

Browse files
fix(site): fix loading spinner on template version status badge (#11392)
1 parent f5196c0 commit 4edd21a

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

site/src/pages/TemplateVersionEditorPage/TemplateVersionStatusBadge.tsx

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
import { type TemplateVersion } from "api/typesGenerated";
22
import { type FC, type ReactNode } from "react";
3-
import CircularProgress from "@mui/material/CircularProgress";
43
import ErrorIcon from "@mui/icons-material/ErrorOutline";
54
import CheckIcon from "@mui/icons-material/CheckOutlined";
6-
import { Pill, type PillType } from "components/Pill/Pill";
5+
import { Pill, PillSpinner, type PillType } from "components/Pill/Pill";
76

87
interface TemplateVersionStatusBadgeProps {
98
version: TemplateVersion;
@@ -20,10 +19,6 @@ export const TemplateVersionStatusBadge: FC<
2019
);
2120
};
2221

23-
const LoadingIcon: FC = () => {
24-
return <CircularProgress size={10} style={{ color: "#FFF" }} />;
25-
};
26-
2722
export const getStatus = (
2823
version: TemplateVersion,
2924
): {
@@ -36,19 +31,19 @@ export const getStatus = (
3631
return {
3732
type: "info",
3833
text: "Running",
39-
icon: <LoadingIcon />,
34+
icon: <PillSpinner />,
4035
};
4136
case "pending":
4237
return {
4338
type: "info",
4439
text: "Pending",
45-
icon: <LoadingIcon />,
40+
icon: <PillSpinner />,
4641
};
4742
case "canceling":
4843
return {
4944
type: "warning",
5045
text: "Canceling",
51-
icon: <LoadingIcon />,
46+
icon: <PillSpinner />,
5247
};
5348
case "canceled":
5449
return {

0 commit comments

Comments
 (0)