Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | 5x 5x | function formatBuildStatus(status: string): React.JSX.Element {
switch (status) {
case "never_built":
return <>Never built </>;
case "building_soon":
return <>Building soon </>;
case "wont_release":
return <>Won't release</>;
case "released":
return <>Released </>;
case "release_failed":
return <>Release failed </>;
case "releasing_soon":
return <>Releasing soon </>;
case "in_progress":
return (
<>
<i className="p-icon--spinner u-animation--spin" />
In progress
</>
);
case "failed_to_build":
return <>Failed to build </>;
case "cancelled":
return <>Cancelled </>;
case "unknown":
return <>Unknown </>;
case "ERROR":
return <>Error </>;
case "SUCCESS":
return <>Success </>;
case "IDLE":
return <>Idle </>;
default:
return <>{status} </>;
}
}
export default formatBuildStatus;
|