Browse Source

fix(participants-pane) bring back lobby reject button

It got accidentally removed in:
1dc8bfa631 (diff-ef66b8ab7c899b16d6c1102b3c812aa45509f95e11267cbfdbd0674143e94575)
master
Saúl Ibarra Corretgé 4 years ago
parent
commit
4473ce8fb6

+ 6
- 1
react/features/participants-pane/components/web/LobbyParticipantItem.js View File

@@ -33,7 +33,7 @@ export const LobbyParticipantItem = ({
33 33
     openDrawerForParticipant
34 34
 }: Props) => {
35 35
     const { id } = p;
36
-    const [ admit ] = useLobbyActions({ participantID: id });
36
+    const [ admit, reject ] = useLobbyActions({ participantID: id });
37 37
     const { t } = useTranslation();
38 38
 
39 39
     return (
@@ -48,6 +48,11 @@ export const LobbyParticipantItem = ({
48 48
             raisedHand = { p.raisedHand }
49 49
             videoMediaState = { MEDIA_STATE.NONE }
50 50
             youText = { t('chat.you') }>
51
+            <ParticipantActionButton
52
+                onClick = { reject }
53
+                primary = { false }>
54
+                {t('lobby.reject')}
55
+            </ParticipantActionButton>
51 56
             <ParticipantActionButton
52 57
                 onClick = { admit }
53 58
                 primary = { true }>

Loading…
Cancel
Save