fix(participants-pane) bring back lobby reject button

It got accidentally removed in:
1dc8bfa631 (diff-ef66b8ab7c899b16d6c1102b3c812aa45509f95e11267cbfdbd0674143e94575)
This commit is contained in:
Saúl Ibarra Corretgé 2021-09-23 09:58:23 +02:00 committed by Saúl Ibarra Corretgé
parent 41c38427c1
commit 4473ce8fb6
1 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,7 @@ export const LobbyParticipantItem = ({
openDrawerForParticipant
}: Props) => {
const { id } = p;
const [ admit ] = useLobbyActions({ participantID: id });
const [ admit, reject ] = useLobbyActions({ participantID: id });
const { t } = useTranslation();
return (
@ -48,6 +48,11 @@ export const LobbyParticipantItem = ({
raisedHand = { p.raisedHand }
videoMediaState = { MEDIA_STATE.NONE }
youText = { t('chat.you') }>
<ParticipantActionButton
onClick = { reject }
primary = { false }>
{t('lobby.reject')}
</ParticipantActionButton>
<ParticipantActionButton
onClick = { admit }
primary = { true }>