This commit is contained in:
Nicholas Koben Kao committed 2024-01-24 12:53:43 -08:00
1 parent b1e9bcc4e6
commit eb04f246a4
4 files changed
+12 -3

No files matched your search

+2 -2
View File
@@ -89,7 +89,7 @@ export const columns: ColumnDef<CheckpointItemList>[] = [
</span>
{checkpoint.is_public ? (
<Badge variant="orange">Public</Badge>
<Badge variant="green">Public</Badge>
) : (
<Badge variant="orange">Private</Badge>
)}
@@ -112,7 +112,7 @@ export const columns: ColumnDef<CheckpointItemList>[] = [
},
cell: ({ row }) => {
return (
<Badge variant={row.original.status === "failed" ? "red" : "green"}>
<Badge variant={row.original.status === "failed" ? "red" : (row.original.status === "started" ? "yellow" : "green")}>
{row.original.status}
</Badge>
);