diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:17:59 -0700 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2020-09-20 23:17:59 -0700 |
commit | f575540df13fd67881daf6a3359e2d1a53da9fb0 (patch) | |
tree | 530afdb06144f64ff6d9b4f79000b33b0c34dbac | |
parent | b318cfd66ee2fa9918797fc0e0226a01983da746 (diff) | |
download | etbsa-traccar-web-f575540df13fd67881daf6a3359e2d1a53da9fb0.tar.gz etbsa-traccar-web-f575540df13fd67881daf6a3359e2d1a53da9fb0.tar.bz2 etbsa-traccar-web-f575540df13fd67881daf6a3359e2d1a53da9fb0.zip |
Remove unused code
-rw-r--r-- | modern/src/EditItemView.js | 2 | ||||
-rw-r--r-- | modern/src/admin/UsersPage.js | 4 | ||||
-rw-r--r-- | 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 db8cd0d..096b80d 100644 --- a/modern/src/EditItemView.js +++ b/modern/src/EditItemView.js @@ -57,7 +57,7 @@ const EditItemView = ({ children, endpoint, setItem, getItem }) => { return ( <> - <MainToobar history={history} /> + <MainToobar /> <Container maxWidth='xs' className={classes.container}> <form> {children} diff --git a/modern/src/admin/UsersPage.js b/modern/src/admin/UsersPage.js index 529cdc6..e4b2146 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 ( <div className={classes.root}> - <MainToobar history={history} /> + <MainToobar /> <EditCollectionView content={UsersView} editPath="/user" endpoint="users" /> </div> ); diff --git a/modern/src/reports/RouteReportPage.js b/modern/src/reports/RouteReportPage.js index eb0ccc5..406cc42 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 ( <div className={classes.root}> - <MainToobar history={history} /> + <MainToobar /> <div className={classes.content}> <Grid container spacing={2}> <Grid item xs={12} md={3} lg={2}> |