From b7aed6ed7df2cea67924d34154671afb75edb7c2 Mon Sep 17 00:00:00 2001
From: eug-vs <eug-vs@keemail.me>
Date: Sat, 29 Aug 2020 15:34:17 +0300
Subject: fix: resovle eslint errors

---
 src/containers/Login/Login.tsx | 9 ++-------
 1 file changed, 2 insertions(+), 7 deletions(-)

(limited to 'src/containers/Login/Login.tsx')

diff --git a/src/containers/Login/Login.tsx b/src/containers/Login/Login.tsx
index 9814d01..3d58c63 100644
--- a/src/containers/Login/Login.tsx
+++ b/src/containers/Login/Login.tsx
@@ -53,7 +53,6 @@ const Login: React.FC = () => {
   const history = useHistory();
 
   const handleSubmit = async ({ username, password, remember }: Fields) => {
-    console.log({ username, password, remember })
     if (username && password) {
       login(username, password, remember).then(success => {
         if (success) history.push(`/profile/${username}`);
@@ -76,7 +75,7 @@ const Login: React.FC = () => {
         initialValues={{ username: '', password: '', remember: true }}
         onSubmit={handleSubmit}
       >
-        {({ values, touched, isSubmitting }) => (
+        {({ values, isSubmitting }) => (
           <Form className={classes.root} autoComplete="off">
             <Field
               name="username"
@@ -96,11 +95,7 @@ const Login: React.FC = () => {
               InputProps={{
                 endAdornment: (
                   <InputAdornment position="end">
-                    <IconButton
-                      size="small"
-                      aria-label="toggle password visibility"
-                      onClick={toggleShowPassword}
-                    >
+                    <IconButton size="small" onClick={toggleShowPassword}>
                       {showPassword ? <Visibility /> : <VisibilityOff />}
                     </IconButton>
                   </InputAdornment>
-- 
cgit v1.2.3

