Refactored password visibility state and added small css fix
This commit is contained in:
1 parent
1e9bb5501e
commit
99b1130e29
7 files changed
+7
-31
No files matched your search
@@ -110,8 +110,6 @@ const Login = () => {
|
||||
navigate("/register");
|
||||
};
|
||||
|
||||
const [visibility, setVisibility] = useState(false);
|
||||
|
||||
return (
|
||||
<div className="login-page">
|
||||
<BackgroundPattern></BackgroundPattern>
|
||||
@@ -142,8 +140,6 @@ const Login = () => {
|
||||
type="password"
|
||||
id="login-password-input"
|
||||
label="Password"
|
||||
isVisible={visibility}
|
||||
setVisibility={setVisibility}
|
||||
placeholder="Enter your password"
|
||||
autoComplete="current-password"
|
||||
onChange={handleInput}
|
||||
|
||||
Reference in new issue
Block a user