fix(participants-pane) bring back lobby reject button
It got accidentally removed in:
1dc8bfa631 (diff-ef66b8ab7c899b16d6c1102b3c812aa45509f95e11267cbfdbd0674143e94575)
This commit is contained in:
parent
41c38427c1
commit
4473ce8fb6
|
@ -33,7 +33,7 @@ export const LobbyParticipantItem = ({
|
||||||
openDrawerForParticipant
|
openDrawerForParticipant
|
||||||
}: Props) => {
|
}: Props) => {
|
||||||
const { id } = p;
|
const { id } = p;
|
||||||
const [ admit ] = useLobbyActions({ participantID: id });
|
const [ admit, reject ] = useLobbyActions({ participantID: id });
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -48,6 +48,11 @@ export const LobbyParticipantItem = ({
|
||||||
raisedHand = { p.raisedHand }
|
raisedHand = { p.raisedHand }
|
||||||
videoMediaState = { MEDIA_STATE.NONE }
|
videoMediaState = { MEDIA_STATE.NONE }
|
||||||
youText = { t('chat.you') }>
|
youText = { t('chat.you') }>
|
||||||
|
<ParticipantActionButton
|
||||||
|
onClick = { reject }
|
||||||
|
primary = { false }>
|
||||||
|
{t('lobby.reject')}
|
||||||
|
</ParticipantActionButton>
|
||||||
<ParticipantActionButton
|
<ParticipantActionButton
|
||||||
onClick = { admit }
|
onClick = { admit }
|
||||||
primary = { true }>
|
primary = { true }>
|
||||||
|
|
Loading…
Reference in New Issue