Skip to content

Commit

Permalink
Merge pull request #131 from MohitGoyal09/login-ui-fix
Browse files Browse the repository at this point in the history
Fixed the ui of misplacement of showpassword icon
  • Loading branch information
skmirajulislam authored Oct 8, 2024
2 parents 5c137d8 + 431d47f commit 28d518c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 31 deletions.
9 changes: 0 additions & 9 deletions frontend/src/components/Login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,6 @@ function Login() {
onChange={(e) => setPassword(e.target.value)}
required
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
style={{ backgroundColor: '#fff', position: 'relative', bottom: '30px', left: '550px', height: '1px' }}
>
<span style={{ color: "black", position: 'relative', bottom: '10px' }} className="material-symbols-outlined">
{showPassword ? 'visibility_off' : 'visibility'}
</span>
</button>
</div>
<button type="submit" className="btn btn-primary w-100" disabled={loading}>
{loading ? 'Logging in...' : 'Login'}
Expand Down
23 changes: 1 addition & 22 deletions frontend/src/components/Signup/Signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,7 @@ function Signup() {
onChange={(e) => setPassword(e.target.value)}
required
/>
<button onClick={handlePasswordVisibility} style={{
backgroundColor: '#fff',
position: 'relative',
bottom: '30px',
left: '550px',
height: '1px'
}}>
<span style={{ color: "black", position: 'relative', bottom: '10px' }} className="material-symbols-outlined">
{showPassword ? 'visibility_off' : 'visibility'}
</span>
</button>

</div>
<div className="mb-3">
<label htmlFor="confirmPassword" className="form-label">Confirm Password:</label>
Expand All @@ -118,17 +108,6 @@ function Signup() {
onChange={(e) => setConfirmPassword(e.target.value)}
required
/>
<button onClick={handleConfirmPasswordVisibility} style={{
backgroundColor: '#fff',
position: 'relative',
bottom: '30px',
left: '550px',
height: '1px'
}}>
<span style={{ color: "black", position: 'relative', bottom: '10px' }} className="material-symbols-outlined">
{showConfirmPassword ? 'visibility_off' : 'visibility'}
</span>
</button>
</div>
<button type="submit" className="btn btn-primary w-100" disabled={loading}>
{loading ? 'Signing up...' : 'Sign Up'}
Expand Down

0 comments on commit 28d518c

Please sign in to comment.