From dbf8397ed7f40ee81b2c7048a2449f96ed5bd4b1 Mon Sep 17 00:00:00 2001 From: Adebiyi Adebayo Date: Sat, 28 Dec 2024 03:30:14 +0100 Subject: [PATCH] Update ChartReportPage.jsx removed unnecessary constants --- src/reports/ChartReportPage.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/reports/ChartReportPage.jsx b/src/reports/ChartReportPage.jsx index 0c37f4e1ac..04791e7a79 100644 --- a/src/reports/ChartReportPage.jsx +++ b/src/reports/ChartReportPage.jsx @@ -20,9 +20,6 @@ import { import useReportStyles from './common/useReportStyles'; const ChartReportPage = () => { - const [, setZoomDomain] = useState({ start: 'dataMin', end: 'dataMax' }); - const handleBrushChange = (range) => { if (range) { setZoomDomain({ start: range.startIndex, end: range.endIndex }); } }; - const classes = useReportStyles(); const theme = useTheme(); const t = useTranslation(); @@ -169,9 +166,8 @@ const ChartReportPage = () => { height={30} stroke={theme.palette.primary.main} tickFormatter={() => ''} - onChange={(range) => handleBrushChange(range)} /> -