From f575540df13fd67881daf6a3359e2d1a53da9fb0 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 20 Sep 2020 23:17:59 -0700 Subject: Remove unused code --- modern/src/EditItemView.js | 2 +- modern/src/admin/UsersPage.js | 4 +--- modern/src/reports/RouteReportPage.js | 4 +--- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/modern/src/EditItemView.js b/modern/src/EditItemView.js index db8cd0dc..096b80d3 100644 --- a/modern/src/EditItemView.js +++ b/modern/src/EditItemView.js @@ -57,7 +57,7 @@ const EditItemView = ({ children, endpoint, setItem, getItem }) => { return ( <> - +
{children} diff --git a/modern/src/admin/UsersPage.js b/modern/src/admin/UsersPage.js index 529cdc64..e4b21467 100644 --- a/modern/src/admin/UsersPage.js +++ b/modern/src/admin/UsersPage.js @@ -1,6 +1,5 @@ import React, { useState } from 'react'; import MainToobar from '../MainToolbar'; -import { useHistory } from 'react-router-dom'; import { TableContainer, Table, TableRow, TableCell, TableHead, TableBody, makeStyles, IconButton } from '@material-ui/core'; import MoreVertIcon from '@material-ui/icons/MoreVert'; import t from '../common/localization'; @@ -63,12 +62,11 @@ const UsersView = ({ updateTimestamp, onMenuClick }) => { } const UsersPage = () => { - const history = useHistory(); const classes = useStyles(); return (
- +
); diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index eb0ccc55..406cc422 100644 --- a/modern/src/reports/RouteReportPage.js +++ b/modern/src/reports/RouteReportPage.js @@ -1,6 +1,5 @@ import React, { useState } from 'react'; import MainToobar from '../MainToolbar'; -import { useHistory } from 'react-router-dom'; import { Grid, TableContainer, Table, TableRow, TableCell, TableHead, TableBody, Paper, makeStyles, FormControl, InputLabel, Select, MenuItem, Button, TextField } from '@material-ui/core'; import t from '../common/localization'; import { useSelector } from 'react-redux'; @@ -24,7 +23,6 @@ const useStyles = makeStyles(theme => ({ })); const RouteReportPage = () => { - const history = useHistory(); const classes = useStyles(); const devices = useSelector(state => Object.values(state.devices.items)); const [deviceId, setDeviceId] = useState(); @@ -81,7 +79,7 @@ const RouteReportPage = () => { return (
- +
-- cgit v1.2.3