This commit is contained in:
Adrien Vannson 2023-03-01 11:46:51 +01:00
parent 4a208c084e
commit b8b16d8e41
No known key found for this signature in database
GPG Key ID: FE2E66FD978C1A55

View File

@ -140,16 +140,27 @@ function RoomInformation({ roomId, setIsEditDialogOpen }) {
<Typography component="h2" variant="h5" gutterBottom>
Salle sélectionnée
</Typography>
<ul>
<li>{
names.length === 0 ? <em>Aucun nom défini</em> : names.join(', ')
}</li>
<li>{
users.length === 0
? <em>Aucun utilisateur défini</em>
: 'Utilisée par ' + users.join(', ')
}</li>
</ul>
<Typography component="h3" variant="h6" gutterBottom>Noms</Typography>
{
names.length === 0
? <em>Aucun nom défini</em>
: names.map(name => {
return <><Chip label={name} variant="outlined" /><br/></>
})
}
<Typography component="h3" variant="h6" gutterBottom>Utilisateurs</Typography>
<div>
{
users.length === 0
? <em>Aucun utilisateur défini</em>
: users.map(name => {
return <><Chip label={name} variant="outlined" /><br/></>
})
}
</div>
<Button startIcon={<EditIcon />} onClick={() => { setIsEditDialogOpen(true) }}>
Modifier
</Button>