blob: b289c2e6aa2a4d02b60728694eec7cbc75f906fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import React from "react";
import Button from "@mui/material/Button";
import Card from "@mui/material/Card";
class ListItem extends React.Component {
render() {
return (
<tr
className="list-item"
variant="outlined"
sx={{
display: "flex",
justifyContent: "space-between",
alignItems: "center",
paddingTop: "1em",
paddingBottom: "1em"
}}
onClick={() => (window.location = `/${this.props._id}`)}
>
<td>{this.props.timestamp_in_utc}</td>
<td>
{this.props.ip}:{this.props.port}
</td>
<td>{this.props.domain}</td>
<td>{this.props.system_name}</td>
<td>
<Card
className={
"cve" + (this.props.vulnerable ? " vulnerable" : "")
}
variant="outlined"
>
{this.props.cve}
</Card>
</td>
<td>
<Button variant="contained">Re-scan</Button>
</td>
</tr>
);
}
}
export default ListItem;
|