Added statuses to label prop types and fixed console errors.

This commit is contained in:
M M
2024-06-29 17:26:19 -07:00
parent 264410ca91
commit b7a35a67b1
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ const StatusLabel = ({ status, customStyles }) => {
};
StatusLabel.propTypes = {
status: PropTypes.oneOf(["Seen", "Waiting", "New", "Active"]),
status: PropTypes.oneOf(["Seen", "Waiting", "New", "Active", "Down", "Cannot resolve"]),
customStyles: PropTypes.object,
};

View File

@@ -57,7 +57,7 @@ export default function CustomizedTables() {
</TableHead>
<TableBody>
{rows.map((row, index) => (
<StyledTableRow key={row.name}>
<StyledTableRow key={index}>
<StyledTableCell component="th" scope="row">
{row.name}
</StyledTableCell>