From b7a35a67b18eca1a98562f85144d784094de5e02 Mon Sep 17 00:00:00 2001 From: M M Date: Sat, 29 Jun 2024 17:26:19 -0700 Subject: [PATCH] Added statuses to label prop types and fixed console errors. --- Client/src/Components/Label/index.jsx | 2 +- Client/src/Pages/Incidents/index.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Client/src/Components/Label/index.jsx b/Client/src/Components/Label/index.jsx index 984b45da2..d6c6adbd5 100644 --- a/Client/src/Components/Label/index.jsx +++ b/Client/src/Components/Label/index.jsx @@ -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, }; diff --git a/Client/src/Pages/Incidents/index.jsx b/Client/src/Pages/Incidents/index.jsx index c2d40428e..a2cb59517 100644 --- a/Client/src/Pages/Incidents/index.jsx +++ b/Client/src/Pages/Incidents/index.jsx @@ -57,7 +57,7 @@ export default function CustomizedTables() { {rows.map((row, index) => ( - + {row.name}