Conneted Monitor page to backend. Added data normailization to Checks. Added JSdocs and proptypes

This commit is contained in:
Alex Holliday committed 2024-06-21 15:11:54 -07:00
1 parent 2f1053bd05
commit 171b1b8059
7 files changed
+92 -35

No files matched your search

@@ -1,8 +1,15 @@
import SearchTextField from "../TextFields/Search/SearchTextField";
import "./index.css";
import React from "react";
import HostsTable from "../HostsTable";
import Pagination from "../Pagination";
import PropTypes from "prop-types";
/**
* CurrentMonitors displays the current status of monitor
*
* @component
* @param {Array<Monitor>} monitors - An array of monitor objects to be displayed.
*/
const CurrentMonitors = ({ monitors }) => {
return (
@@ -24,4 +31,8 @@ const CurrentMonitors = ({ monitors }) => {
);
};
CurrentMonitors.propTypes = {
monitors: PropTypes.arrayOf(PropTypes.object).isRequired,
};
export default CurrentMonitors;