aboutsummaryrefslogtreecommitdiff
path: root/modern/src
diff options
context:
space:
mode:
authorDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-01 14:23:55 +0000
committerDesmond Kyeremeh <elDekyfin@gmail.com>2021-07-01 14:23:55 +0000
commitbf26504a27dbfc87c0280cb4909d85f4d5ecae7a (patch)
treeee20116bda2484ca7287c6f4a2ae11a48046379c /modern/src
parenta308b898094a3306fd28ac34e1b72fa36c72f804 (diff)
downloadtrackermap-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.tar.gz
trackermap-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.tar.bz2
trackermap-web-bf26504a27dbfc87c0280cb4909d85f4d5ecae7a.zip
Removed unused vars
Diffstat (limited to 'modern/src')
-rw-r--r--modern/src/admin/UsersPage.js1
-rw-r--r--modern/src/settings/ComputedAttributesPage.js1
-rw-r--r--modern/src/settings/DriversPage.js1
-rw-r--r--modern/src/settings/GroupsPage.js1
-rw-r--r--modern/src/settings/MaintenancesPage.js1
-rw-r--r--modern/src/settings/NotificationsPage.js1
-rw-r--r--modern/src/settings/OptionsLayout/index.js2
7 files changed, 1 insertions, 7 deletions
diff --git a/modern/src/admin/UsersPage.js b/modern/src/admin/UsersPage.js
index aed675c9..ceaab6ab 100644
--- a/modern/src/admin/UsersPage.js
+++ b/modern/src/admin/UsersPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
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';
diff --git a/modern/src/settings/ComputedAttributesPage.js b/modern/src/settings/ComputedAttributesPage.js
index 49c35d6d..d7475989 100644
--- a/modern/src/settings/ComputedAttributesPage.js
+++ b/modern/src/settings/ComputedAttributesPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
import { TableContainer, Table, TableRow, TableCell, TableHead, TableBody, makeStyles, IconButton } from '@material-ui/core';
import MoreVertIcon from '@material-ui/icons/MoreVert';
import { useSelector } from 'react-redux';
diff --git a/modern/src/settings/DriversPage.js b/modern/src/settings/DriversPage.js
index 13cb1c62..d5427b2f 100644
--- a/modern/src/settings/DriversPage.js
+++ b/modern/src/settings/DriversPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
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';
diff --git a/modern/src/settings/GroupsPage.js b/modern/src/settings/GroupsPage.js
index 2de62418..2fc65c12 100644
--- a/modern/src/settings/GroupsPage.js
+++ b/modern/src/settings/GroupsPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
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';
diff --git a/modern/src/settings/MaintenancesPage.js b/modern/src/settings/MaintenancesPage.js
index 3fd0b391..d713eaa3 100644
--- a/modern/src/settings/MaintenancesPage.js
+++ b/modern/src/settings/MaintenancesPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
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';
diff --git a/modern/src/settings/NotificationsPage.js b/modern/src/settings/NotificationsPage.js
index 3756e965..5707f890 100644
--- a/modern/src/settings/NotificationsPage.js
+++ b/modern/src/settings/NotificationsPage.js
@@ -1,5 +1,4 @@
import React, { useState } from 'react';
-import MainToolbar from '../MainToolbar';
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';
diff --git a/modern/src/settings/OptionsLayout/index.js b/modern/src/settings/OptionsLayout/index.js
index c56ebc3b..f6f1e4b8 100644
--- a/modern/src/settings/OptionsLayout/index.js
+++ b/modern/src/settings/OptionsLayout/index.js
@@ -58,7 +58,7 @@ const OptionsLayout = ({ children }) => {
useEffect(() => {
const activeRoute = routes.find(route => route.href === location.pathname);
setOptionTitle(activeRoute.name);
- }, [location]);
+ }, [location, routes]);
const title = `Options / ${optionTitle}`;