|
|
|
@ -12,24 +12,35 @@ const ConfigurationDuProfil = ()=>{
|
|
|
|
|
const [pseudo, setPseudo] = useState('');
|
|
|
|
|
const [nomUtilisateur, setNomUtilisateur] = useState('');
|
|
|
|
|
const [displayAdd, setDisplayAdd] = useState(false);
|
|
|
|
|
const handleModals=()=>{
|
|
|
|
|
|
|
|
|
|
/*const [updateImage, setUpdateImage]= useState(false);
|
|
|
|
|
const setimageDeProfile=()=>{
|
|
|
|
|
if(updateImage=true){
|
|
|
|
|
useState("");
|
|
|
|
|
setDisplayAdd(false);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
setDisplayAdd(false);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
var handleLoadFile=(e)=>{
|
|
|
|
|
var image = document.getElementById("output");
|
|
|
|
|
image.src = URL.createObjectURL(e.target.files[0]);
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var a=PP;
|
|
|
|
|
return(
|
|
|
|
|
<div className='modificationDuProfilBackgroud'>
|
|
|
|
|
<h2 className='ligneHorizontal' >Modifucation du Profil</h2>
|
|
|
|
|
<div className='modificationDuProfil' >
|
|
|
|
|
<button className='imageDeProfilConfigurationPlus imageDeProfil' >
|
|
|
|
|
<img src={PLUS} className="plusButton "/>
|
|
|
|
|
<img src={PP} className="imageDeProfilConfiguration imageDeProfil" onClick={() => setDisplayAdd(true)}/>
|
|
|
|
|
<img src={a} className="imageDeProfilConfiguration imageDeProfil" onClick={() => setDisplayAdd(true)}/>
|
|
|
|
|
</button>
|
|
|
|
|
<div className='modificationDuProfilText'>
|
|
|
|
|
<span>Pseudo: </span>
|
|
|
|
|
<span>Nom d'utilisateur:</span>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div className='modificationDuProfilText'>
|
|
|
|
|
|
|
|
|
|
<input className='inputConfiguration'
|
|
|
|
@ -46,8 +57,13 @@ const ConfigurationDuProfil = ()=>{
|
|
|
|
|
value={pseudo}
|
|
|
|
|
onChange={(e) => setPseudo (e.target.value)}
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<button className='buttonValidationChangements'>Valider</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<h2 className='ligneHorizontal' >Acces au dossiers personnel</h2>
|
|
|
|
|
<div className='accesDossiersPerso'>
|
|
|
|
|
<div className='accesDossiersPersoValidation'>
|
|
|
|
@ -67,11 +83,18 @@ const ConfigurationDuProfil = ()=>{
|
|
|
|
|
<div className="modal">
|
|
|
|
|
<div className='imagesPopup'>
|
|
|
|
|
<img src={PP} className="imageDeProfilConfigurationPlus imageDeProfil"/>
|
|
|
|
|
<img src={PLUS} className="imageDeProfilConfigurationPlus imageDeProfil" onClick={handleModals}/>
|
|
|
|
|
<div className="imageDeProfilConfigurationPlus imageDeProfil profile-pic" >
|
|
|
|
|
<label className="-label" for="file">
|
|
|
|
|
<span class="camera"></span>
|
|
|
|
|
<span>Changer</span>
|
|
|
|
|
</label>
|
|
|
|
|
<input type="file" id="file" onChange={handleLoadFile}/>
|
|
|
|
|
<img src={PLUS} id="output" />
|
|
|
|
|
</div>
|
|
|
|
|
</div >
|
|
|
|
|
<div className='buttonPopup'>
|
|
|
|
|
<button onClick={() => setDisplayAdd(false)}>Retour</button>
|
|
|
|
|
<button /*onClick={handlePost} */>Valider</button>
|
|
|
|
|
<button onClick={() => setDisplayAdd(false)/*&&setUpdateImage(true)*/}>Retour</button>
|
|
|
|
|
<button /*onClick={} */>Valider</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|