Update ChartReportPage.jsx

removed unnecessary constants
This commit is contained in:
Adebiyi Adebayo 2024-12-28 03:30:14 +01:00 committed by GitHub
parent 1aecb1796c
commit dbf8397ed7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)}
/>
<Line
<Line
type="monotone"
dataKey={type}
stroke={theme.palette.primary.main}