Skip to content

Commit

Permalink
Fixed the ui of misplacement of showpassword icon
Browse files Browse the repository at this point in the history
  • Loading branch information
MohitGoyal09 committed Oct 8, 2024
1 parent 8ea7fa5 commit 431d47f
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 431d47f

Please sign in to comment.