feat(native-participants-pane) fixed lint errors
This commit is contained in:
parent
665b7730ee
commit
eeddf6b350
|
@ -35,7 +35,7 @@ const ParticipantsPane = () => {
|
||||||
const isLocalModerator = useSelector(isLocalParticipantModerator);
|
const isLocalModerator = useSelector(isLocalParticipantModerator);
|
||||||
const participantsCount = useSelector(getParticipantCount);
|
const participantsCount = useSelector(getParticipantCount);
|
||||||
const everyoneModerator = useSelector(isEveryoneModerator);
|
const everyoneModerator = useSelector(isEveryoneModerator);
|
||||||
const showContextMenu = true;
|
const showContextMenu = !everyoneModerator && participantsCount > 2;
|
||||||
const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),
|
const muteAll = useCallback(() => dispatch(openDialog(MuteEveryoneDialog)),
|
||||||
[ dispatch ]);
|
[ dispatch ]);
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
Loading…
Reference in New Issue