mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 07:24:52 +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";
|
||||
|
||||
const statusColors = {
|
||||
unknown: "#d46b08",
|
||||
unassigned: "#d4380d",
|
||||
unknown: "#8c8c8c",
|
||||
unassigned: "#eb2f96",
|
||||
stopped: "#cf1322",
|
||||
starting: "#d4b106",
|
||||
starting: "#ad8b00",
|
||||
running: "#52c41a",
|
||||
stopping: "#d48806",
|
||||
creating_save: "#096dd9",
|
||||
exporting_data: "#08979c",
|
||||
deleted: "#cf1322",
|
||||
deleted: "#262626",
|
||||
};
|
||||
|
||||
|
||||
export default function InstanceStatusTag(props) {
|
||||
return <Tag color={statusColors[props.status]}>
|
||||
{props.status}
|
||||
{props.status.replace("_", " ")}
|
||||
</Tag>;
|
||||
}
|
||||
Reference in new issue
Block a user