diff --git a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/StatusLabel.js b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/StatusLabel.js index 98ac1edb6..68ce5111e 100644 --- a/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/StatusLabel.js +++ b/monkey/monkey_island/cc/ui/src/components/report-components/zerotrust/StatusLabel.js @@ -2,22 +2,29 @@ import React, {Component, Fragment} from "react"; import * as PropTypes from "prop-types"; const statusToIcon = { - "Positive": "fa-check status-success", - "Inconclusive": "fa-exclamation-triangle status-warning", - "Conclusive": "fa-bomb status-danger", - "Unexecuted": "fa-question status-default", + "Positive": "fa-check", + "Inconclusive": "fa-exclamation-triangle", + "Conclusive": "fa-bomb", + "Unexecuted": "fa-question", +}; + +const statusToLabelType = { + "Positive": "label-success", + "Inconclusive": "label-warning", + "Conclusive": "label-danger", + "Unexecuted": "label-default", }; export class StatusLabel extends Component { render() { - const classname = "fa " + statusToIcon[this.props.status] + " " + this.props.size; let text = ""; if (this.props.showText) { text = " " + this.props.status; } - return ( - {text} - ); + + return (
+ {text} +
); } }