Added statuses to label prop types and fixed console errors.

This commit is contained in:
M M committed 2024-06-29 17:26:19 -07:00
1 parent 264410ca91
commit b7a35a67b1
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -153,7 +153,7 @@ const StatusLabel = ({ status, customStyles }) => {
}; };
StatusLabel.propTypes = { StatusLabel.propTypes = {
status: PropTypes.oneOf(["Seen", "Waiting", "New", "Active"]), status: PropTypes.oneOf(["Seen", "Waiting", "New", "Active", "Down", "Cannot resolve"]),
customStyles: PropTypes.object, customStyles: PropTypes.object,
}; };
+1 -1
View File
@@ -57,7 +57,7 @@ export default function CustomizedTables() {
</TableHead> </TableHead>
<TableBody> <TableBody>
{rows.map((row, index) => ( {rows.map((row, index) => (
<StyledTableRow key={row.name}> <StyledTableRow key={index}>
<StyledTableCell component="th" scope="row"> <StyledTableCell component="th" scope="row">
{row.name} {row.name}
</StyledTableCell> </StyledTableCell>