feat(participants-pane) hide admit all if knocking part < 2

This commit is contained in:
Calin Chitu 2022-01-07 13:43:25 +02:00 committed by Calinteodor
parent f4c91374bf
commit 8de024a699
1 changed files with 6 additions and 3 deletions

View File

@ -88,9 +88,12 @@ export default function LobbyParticipants() {
<div className = { classes.heading }>
{t('participantsPane.headings.lobby', { count: participants.length })}
</div>
<div
className = { classes.link }
onClick = { admitAll }>{t('lobby.admitAll')}</div>
{
participants.length > 1
&& <div
className = { classes.link }
onClick = { admitAll }>{t('lobby.admitAll')}</div>
}
</div>
<LobbyParticipantItems
openDrawerForParticipant = { openDrawerForParticipant }