From 88f5cbb254986d0b548caa0d5224b4d9b3701091 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Sat, 14 Sep 2024 11:23:38 +0800 Subject: [PATCH] Add proptypes to monitor details area chart" --- .../Components/Charts/MonitorDetailsAreaChart/index.jsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx index ed3d724e8..2ecb2f6a8 100644 --- a/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx +++ b/Client/src/Components/Charts/MonitorDetailsAreaChart/index.jsx @@ -11,7 +11,6 @@ import { import { Box, Stack, Typography } from "@mui/material"; import { useTheme } from "@emotion/react"; import { useMemo } from "react"; -import { formatDate } from "../../../Utils/timeUtils"; import "./index.css"; import { useSelector } from "react-redux"; import { formatDateWithTz } from "../../../Utils/timeUtils"; @@ -103,6 +102,13 @@ const CustomTick = ({ x, y, payload, index }) => { ); }; +CustomTick.propTypes = { + x: PropTypes.number, + y: PropTypes.number, + payload: PropTypes.object, + index: PropTypes.number, +}; + const MonitorDetailsAreaChart = ({ checks }) => { const theme = useTheme(); const memoizedChecks = useMemo(() => checks, [checks[0]]);