mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-24 16:23:12 +09:00
Updated colors of the instance tag
This commit is contained in:
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>;
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user