mirror of
https://github.com/traccar/traccar-web.git
synced 2025-01-07 03:26:42 +08:00
Update ChartReportPage.jsx
removed unnecessary constants
This commit is contained in:
parent
1aecb1796c
commit
dbf8397ed7
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user