summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/components/App.js1
-rw-r--r--src/components/ListView.js2
-rw-r--r--src/components/Login.js6
3 files changed, 2 insertions, 7 deletions
diff --git a/src/components/App.js b/src/components/App.js
index d96481f..6ff471b 100644
--- a/src/components/App.js
+++ b/src/components/App.js
@@ -3,7 +3,6 @@ import {
BrowserRouter as Router,
Switch,
Route,
- Link,
useParams
} from "react-router-dom";
diff --git a/src/components/ListView.js b/src/components/ListView.js
index d821397..3e2f523 100644
--- a/src/components/ListView.js
+++ b/src/components/ListView.js
@@ -98,7 +98,7 @@ function ListView(props) {
<Pagination
page={page}
count={totalPages}
- onChange={(e, v) => setPage(v)}
+ onChange={(_, v) => setPage(v)}
variant="outlined"
shape="rounded"
showFirstButton
diff --git a/src/components/Login.js b/src/components/Login.js
index e13606a..6390560 100644
--- a/src/components/Login.js
+++ b/src/components/Login.js
@@ -37,10 +37,6 @@ function Login(props) {
});
}
- function logout() {
- props.clearToken();
- }
-
return (
<div id="login-container">
<Paper id="login" variant="outlined" color="green">
@@ -72,7 +68,7 @@ function Login(props) {
<Button
variant="contained"
className="submit"
- onClick={e => {
+ onClick={_ => {
login(email, password);
}}
sx={{