aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx')
-rw-r--r--frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx72
1 files changed, 36 insertions, 36 deletions
diff --git a/frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx b/frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx
index e4260ec..2bf088b 100644
--- a/frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx
+++ b/frontend/app/components/Gaming/ExecStatusIndicatorIcon.tsx
@@ -1,46 +1,46 @@
import {
- faCircle,
- faCircleCheck,
- faCircleExclamation,
- faRotate,
+ faCircle,
+ faCircleCheck,
+ faCircleExclamation,
+ faRotate,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import type { components } from "../../api/schema";
type Props = {
- status: components["schemas"]["ExecutionStatus"];
+ status: components["schemas"]["ExecutionStatus"];
};
export default function ExecStatusIndicatorIcon({ status }: Props) {
- switch (status) {
- case "none":
- return (
- <FontAwesomeIcon icon={faCircle} fixedWidth className="text-gray-400" />
- );
- case "running":
- return (
- <FontAwesomeIcon
- icon={faRotate}
- spin
- fixedWidth
- className="text-gray-700"
- />
- );
- case "success":
- return (
- <FontAwesomeIcon
- icon={faCircleCheck}
- fixedWidth
- className="text-brand-500"
- />
- );
- default:
- return (
- <FontAwesomeIcon
- icon={faCircleExclamation}
- fixedWidth
- className="text-red-500"
- />
- );
- }
+ switch (status) {
+ case "none":
+ return (
+ <FontAwesomeIcon icon={faCircle} fixedWidth className="text-gray-400" />
+ );
+ case "running":
+ return (
+ <FontAwesomeIcon
+ icon={faRotate}
+ spin
+ fixedWidth
+ className="text-gray-700"
+ />
+ );
+ case "success":
+ return (
+ <FontAwesomeIcon
+ icon={faCircleCheck}
+ fixedWidth
+ className="text-brand-500"
+ />
+ );
+ default:
+ return (
+ <FontAwesomeIcon
+ icon={faCircleExclamation}
+ fixedWidth
+ className="text-red-500"
+ />
+ );
+ }
}