From 592169d94f10cb15142cef1d617f4e59ea2101ed Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Mon, 19 Aug 2024 11:35:12 -0700 Subject: [PATCH] Add proptypes --- Client/src/Pages/Monitors/index.jsx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Client/src/Pages/Monitors/index.jsx b/Client/src/Pages/Monitors/index.jsx index 19a4b4c4f..1b541c72b 100644 --- a/Client/src/Pages/Monitors/index.jsx +++ b/Client/src/Pages/Monitors/index.jsx @@ -27,6 +27,7 @@ import { } from "@mui/material"; import Settings from "../../assets/icons/settings-bold.svg?react"; +import PropTypes from "prop-types"; const ActionsMenu = ({ monitor }) => { const [anchorEl, setAnchorEl] = useState(null); @@ -192,6 +193,14 @@ const ActionsMenu = ({ monitor }) => { ); }; +ActionsMenu.propTypes = { + monitor: PropTypes.shape({ + _id: PropTypes.string, + url: PropTypes.string, + type: PropTypes.string, + }).isRequired, +}; + /** * Host component. * This subcomponent receives a params object and displays the host details. @@ -237,6 +246,15 @@ const Host = ({ params }) => { ); }; +Host.propTypes = { + params: PropTypes.shape({ + url: PropTypes.string, + title: PropTypes.string, + percentageColor: PropTypes.string, + percentage: PropTypes.number, + }).isRequired, +}; + /** * Renders a skeleton layout. *