Add proptypes to monitor details area chart"

This commit is contained in:
Alex Holliday committed 2024-09-14 11:23:38 +08:00
1 parent d942e3144f
commit 88f5cbb254
1 file changed
+7 -1
@@ -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]]);