Added statuses to label prop types and fixed console errors.
This commit is contained in:
1 parent
264410ca91
commit
b7a35a67b1
2 files changed
+2
-2
No files matched your search
@@ -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,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in new issue
Block a user