This commit is contained in:
Nicholas Koben Kao
2024-01-24 12:53:43 -08:00
parent b1e9bcc4e6
commit eb04f246a4
4 changed files with 12 additions and 3 deletions
+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>
);