|
| 1 | +import React from 'react'; |
| 2 | +import { makeStyles } from '@material-ui/core/styles'; |
| 3 | +import Table from '@material-ui/core/Table'; |
| 4 | +import TableBody from '@material-ui/core/TableBody'; |
| 5 | +import TableCell from '@material-ui/core/TableCell'; |
| 6 | +import TableContainer from '@material-ui/core/TableContainer'; |
| 7 | +import TableHead from '@material-ui/core/TableHead'; |
| 8 | +import TableRow from '@material-ui/core/TableRow'; |
| 9 | +import Paper from '@material-ui/core/Paper'; |
| 10 | + |
| 11 | +const useStyles = makeStyles({ |
| 12 | + table: { |
| 13 | + minWidth: 650, |
| 14 | + }, |
| 15 | + tablecell: { |
| 16 | + fontSize: '9pt' |
| 17 | + }, |
| 18 | +}); |
| 19 | + |
| 20 | +function createData(index, time, priority, description) { |
| 21 | + return { index, time, priority, description }; |
| 22 | +} |
| 23 | + |
| 24 | +const rows = [ |
| 25 | + createData(0, '2020-05-26, 09:00:33', 'Notice (6)', 'CM-STATUS message sent. Event Type Code: 24; Chan ID: 33 ; DSID: N/A; MAC Addr: N/A; OFDM/OFDMA Profile ID: 1 2 3 .;CM-MAC=3c:37:86:e8:47:20;CMTS-MAC=00:17:10:8d:ef:a4;CM-QOS=1.1;CM-VER=3.1;'), |
| 26 | + createData(1, '2020-05-26, 09:00:24', 'Notice (6)', 'CM-STATUS message sent. Event Type Code: 16; Chan ID: 33 ; DSID: N/A; MAC Addr: N/A; OFDM/OFDMA Profile ID: 3 .;CM-MAC=3c:37:86:e8:47:20;CMTS-MAC=00:17:10:8d:ef:a4;CM-QOS=1.1;CM-VER=3.1;'), |
| 27 | + createData(2, '2020-05-26, 04:24:51', 'Error (4)', 'DHCP RENEW WARNING - Field invalid in response v4 option;CM-MAC=3c:37:86:e8:47:20;CMTS-MAC=00:17:10:8d:ef:a4;CM-QOS=1.1;CM-VER=3.1;'), |
| 28 | + createData(3, '2020-05-26, 04:20:37', 'Notice (6)', 'CM-STATUS message sent. Event Type Code: 24; Chan ID: 33 ; DSID: N/A; MAC Addr: N/A; OFDM/OFDMA Profile ID: 1 2 3 .;CM-MAC=3c:37:86:e8:47:20;CMTS-MAC=00:17:10:8d:ef:a4;CM-QOS=1.1;CM-VER=3.1;'), |
| 29 | + createData(4, '2020-05-26, 04:20:25', 'Notice (6)', 'CM-STATUS message sent. Event Type Code: 16; Chan ID: 33 ; DSID: N/A; MAC Addr: N/A; OFDM/OFDMA Profile ID: 3 .;CM-MAC=3c:37:86:e8:47:20;CMTS-MAC=00:17:10:8d:ef:a4;CM-QOS=1.1;CM-VER=3.1;'), |
| 30 | +]; |
| 31 | + |
| 32 | +export default function DenseTable() { |
| 33 | + const classes = useStyles(); |
| 34 | + |
| 35 | + return ( |
| 36 | + <TableContainer component={Paper}> |
| 37 | + <Table className={classes.table} size="small" aria-label="a dense table"> |
| 38 | + <TableHead> |
| 39 | + <TableRow> |
| 40 | + <TableCell style={{ width: "15%", padding: "6px", fontSize: "9pt" }}>Time</TableCell> |
| 41 | + <TableCell style={{ width: "10%", padding: "6px", fontSize: "9pt" }}>Priority</TableCell> |
| 42 | + <TableCell style={{ width: "75%", padding: "6px", fontSize: "9pt" }}>Description</TableCell> |
| 43 | + </TableRow> |
| 44 | + </TableHead> |
| 45 | + <TableBody> |
| 46 | + {rows.map((row) => ( |
| 47 | + <TableRow key={row.index}> |
| 48 | + <TableCell style={{ width: "15%", padding: "6px", fontSize: "9pt" }} component="th" scope="row"> |
| 49 | + {row.time} |
| 50 | + </TableCell> |
| 51 | + <TableCell style={{ width: "10%", padding: "6px", fontSize: "9pt" }}>{row.priority}</TableCell> |
| 52 | + <TableCell style={{ width: "75%", padding: "6px", fontSize: "9pt" }}>{row.description}</TableCell> |
| 53 | + </TableRow> |
| 54 | + ))} |
| 55 | + </TableBody> |
| 56 | + </Table> |
| 57 | + </TableContainer> |
| 58 | + ); |
| 59 | +} |
0 commit comments