diff options
| author | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:36 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2024-08-18 01:46:36 +0900 |
| commit | ed796dddde6db433c88b04a1ad154bf88a24faa4 (patch) | |
| tree | de82ed4ae74c75ba7ddf9e478cb6129177ee4c89 /frontend/app/components/ExecStatusIndicatorIcon.tsx | |
| parent | 7653eb2b28911a0479b3b673c9b63fd490aedb6b (diff) | |
| parent | 9bd1f89febe6311781aca3e8ee2b6a706a606e3c (diff) | |
| download | iosdc-japan-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.tar.gz iosdc-japan-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.tar.zst iosdc-japan-2025-albatross-ed796dddde6db433c88b04a1ad154bf88a24faa4.zip | |
Merge branch 'feat/watch-page'
Diffstat (limited to 'frontend/app/components/ExecStatusIndicatorIcon.tsx')
| -rw-r--r-- | frontend/app/components/ExecStatusIndicatorIcon.tsx | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/frontend/app/components/ExecStatusIndicatorIcon.tsx b/frontend/app/components/ExecStatusIndicatorIcon.tsx deleted file mode 100644 index 5277bfa..0000000 --- a/frontend/app/components/ExecStatusIndicatorIcon.tsx +++ /dev/null @@ -1,51 +0,0 @@ -import { - faBan, - faCircle, - faCircleCheck, - faCircleExclamation, - faRotate, -} from "@fortawesome/free-solid-svg-icons"; -import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; -import type { ExecResultStatus } from "../models/ExecResult"; - -type Props = { - status: ExecResultStatus; -}; - -export default function ExecStatusIndicatorIcon({ status }: Props) { - switch (status) { - case "waiting_submission": - 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-green-500" - /> - ); - case "canceled": - return ( - <FontAwesomeIcon icon={faBan} fixedWidth className="text-gray-400" /> - ); - default: - return ( - <FontAwesomeIcon - icon={faCircleExclamation} - fixedWidth - className="text-red-500" - /> - ); - } -} |
