use Passwordinput component

This commit is contained in:
T'JAMPENS QUENTIN p2406187
2025-12-07 15:02:52 +01:00
parent 31b2e36140
commit c556829bc5
+1 -26
View File
@@ -62,32 +62,7 @@ function RegisterPage() {
/>
</div>
<div className={styles.formGroup}>
<div style={{ position: 'relative', width: '100%' }}>
<Input
type={showPassword ? "text" : "password"}
value={password}
placeholder="Mot de passe"
onChange={e => setPassword(e.target.value)}
style={{ width: '100%' }}
/>
<button
type="button"
onClick={() => setShowPassword(!showPassword)}
style={{
position: 'absolute',
width: '30px',
right: '10px',
top: '50%',
transform: 'translateY(-50%)',
background: 'none',
border: 'none',
cursor: 'pointer',
fontSize: '16px',
}}
>
{showPassword ? '👁️' : '🔒'}
</button>
</div>
<Input password={true} onChange={e => setPassword(e.target.value)} value={password} />
</div>
<div className={styles.logButton}>