Skip to content

Commit

Permalink
Update ChartReportPage.jsx
Browse files Browse the repository at this point in the history
removed unnecessary constants
  • Loading branch information
hypoclone authored Dec 28, 2024
1 parent 1aecb17 commit dbf8397
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/reports/ChartReportPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit dbf8397

Please sign in to comment.