Skip to content

Commit

Permalink
Fix #192 - Add strikethrough on ASNs of RPKI-invalid route objects
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsasha committed Nov 22, 2022
1 parent b02be49 commit c4e3d07
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/components/prefixTable/asnWithRPKIStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,20 @@ import {faCheckCircle, faTimesCircle} from "@fortawesome/free-regular-svg-icons"
function AsnWithRPKIStatus({rpkiStatus, asn}) {
let rpkiIcon = undefined;
let text = '';
let asnClass = '';
if (rpkiStatus === "VALID") {
rpkiIcon = faCheckCircle;
text = "Route object is RPKI-valid"
} else if (rpkiStatus === "INVALID") {
rpkiIcon = faTimesCircle;
text = "Route object is RPKI-invalid"
asnClass = "text-decoration-line-through";
}

return (
<>
<span className="nowrap">
{asn}
<span className={asnClass}>{asn}</span>
{rpkiIcon && <>
{' '}
<span className="d-inline-block" data-bs-toggle="tooltip" title={text}>
Expand Down

0 comments on commit c4e3d07

Please sign in to comment.