Skip to content

Commit

Permalink
login at first click
Browse files Browse the repository at this point in the history
  • Loading branch information
aloxe committed Jun 18, 2024
1 parent 15300bb commit 74c0f22
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/Login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,12 @@ const Login = ({ isLogged, setIsLogged }) => {
<form onSubmit={onLogin} className='login'>
{!isLogged &&
<>
<label name="profile" onClick={loginExpand}>
<label name="profile" onClick={loginExpand} style={{width: "0.7em"}}>
<span></span>
<input type="text" className="login" name="login"
value={login}
onChange={e => {setLogin(e.target.value);}}/>
value={login}
style={{display: "none"}}
onChange={e => {setLogin(e.target.value);}} />
</label>
</>
}
Expand Down

0 comments on commit 74c0f22

Please sign in to comment.