diff --git a/client/src/Pages/Incidents/Components/StatusBoxes/index.jsx b/client/src/Pages/Incidents/Components/StatusBoxes/index.jsx
index ae29f4a8f..d44e00b22 100644
--- a/client/src/Pages/Incidents/Components/StatusBoxes/index.jsx
+++ b/client/src/Pages/Incidents/Components/StatusBoxes/index.jsx
@@ -4,9 +4,9 @@ import StatusBox from "./StatusBox";
import { useTheme } from "@emotion/react";
import SkeletonLayout from "./skeleton";
-const StatusBoxes = ({ shouldRender }) => {
+const StatusBoxes = ({ isLoading, statusCounts }) => {
const theme = useTheme();
- if (!shouldRender) return ;
+ if (isLoading) return ;
return (
{
>
);
};
StatusBoxes.propTypes = {
- shouldRender: PropTypes.bool,
+ isLoading: PropTypes.bool,
+ statusCounts: PropTypes.shape({
+ total: PropTypes.number,
+ resolved: PropTypes.number,
+ cannotResolve: PropTypes.number,
+ down: PropTypes.number,
+ }),
};
export default StatusBoxes;
\ No newline at end of file
diff --git a/client/src/Pages/Incidents/index.jsx b/client/src/Pages/Incidents/index.jsx
index 8d668cb01..708b443a5 100644
--- a/client/src/Pages/Incidents/index.jsx
+++ b/client/src/Pages/Incidents/index.jsx
@@ -64,7 +64,7 @@ const Incidents = () => {
{
}
};
+/**
+ * Get checks and summary by team ID
+ * @async
+ * @param {string} teamId
+ * @returns {Promise