Updated colors of the instance tag

This commit is contained in:
bbassie committed 2021-11-16 23:42:02 +01:00
1 parent fe803a99ca
commit b86305db8c
1 file changed
+5 -5
@@ -2,20 +2,20 @@ import { Tag } from "antd";
import React from "react"; import React from "react";
const statusColors = { const statusColors = {
unknown: "#d46b08", unknown: "#8c8c8c",
unassigned: "#d4380d", unassigned: "#eb2f96",
stopped: "#cf1322", stopped: "#cf1322",
starting: "#d4b106", starting: "#ad8b00",
running: "#52c41a", running: "#52c41a",
stopping: "#d48806", stopping: "#d48806",
creating_save: "#096dd9", creating_save: "#096dd9",
exporting_data: "#08979c", exporting_data: "#08979c",
deleted: "#cf1322", deleted: "#262626",
}; };
export default function InstanceStatusTag(props) { export default function InstanceStatusTag(props) {
return <Tag color={statusColors[props.status]}> return <Tag color={statusColors[props.status]}>
{props.status} {props.status.replace("_", " ")}
</Tag>; </Tag>;
} }