restore label
This commit is contained in:
1 parent
f52285b32f
commit
587cd1777a
1 file changed
+7
-1
@@ -126,6 +126,7 @@ ColoredLabel.propTypes = {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
const StatusLabel = ({ status, text, customStyles }) => {
|
const StatusLabel = ({ status, text, customStyles }) => {
|
||||||
|
console.log(status);
|
||||||
const theme = useTheme();
|
const theme = useTheme();
|
||||||
const colors = {
|
const colors = {
|
||||||
up: {
|
up: {
|
||||||
@@ -138,6 +139,11 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
bgColor: theme.palette.error.bg,
|
bgColor: theme.palette.error.bg,
|
||||||
borderColor: theme.palette.error.light,
|
borderColor: theme.palette.error.light,
|
||||||
},
|
},
|
||||||
|
unknown: {
|
||||||
|
dotColor: theme.palette.unresolved.main,
|
||||||
|
bgColor: theme.palette.unresolved.bg,
|
||||||
|
borderColor: theme.palette.unresolved.light,
|
||||||
|
},
|
||||||
"cannot resolve": {
|
"cannot resolve": {
|
||||||
dotColor: theme.palette.unresolved.main,
|
dotColor: theme.palette.unresolved.main,
|
||||||
bgColor: theme.palette.unresolved.bg,
|
bgColor: theme.palette.unresolved.bg,
|
||||||
@@ -170,7 +176,7 @@ const StatusLabel = ({ status, text, customStyles }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
StatusLabel.propTypes = {
|
StatusLabel.propTypes = {
|
||||||
status: PropTypes.oneOf(["up", "down", "cannot resolve"]),
|
status: PropTypes.oneOf(["up", "down", "unknown", "cannot resolve"]),
|
||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
customStyles: PropTypes.object,
|
customStyles: PropTypes.object,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user