[issue-15756] - corrected inconsistency in create breakout rooms button
This commit is contained in:
parent
9b87e2019b
commit
1cfc2beed7
@ -10,7 +10,7 @@ const BREAKOUT_MODAL_DELAY = 200;
|
||||
const propTypes = {
|
||||
mountModal: PropTypes.func.isRequired,
|
||||
lastBreakoutReceived: PropTypes.shape({
|
||||
breakoutUrlData: PropTypes.func.isRequired,
|
||||
breakoutUrlData: PropTypes.object.isRequired,
|
||||
}),
|
||||
breakoutRoomsUserIsIn: PropTypes.shape({
|
||||
sequence: PropTypes.number.isRequired,
|
||||
|
@ -1,5 +1,5 @@
|
||||
import React from 'react';
|
||||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
import PropTypes from 'prop-types';
|
||||
import Auth from '/imports/ui/services/auth';
|
||||
import Meetings from '/imports/api/meetings';
|
||||
import ActionsBarService from '/imports/ui/components/actions-bar/service';
|
||||
@ -12,12 +12,6 @@ import { notify } from '/imports/ui/services/notification';
|
||||
import UserOptions from './component';
|
||||
import { layoutSelect } from '/imports/ui/components/layout/context';
|
||||
|
||||
const propTypes = {
|
||||
users: PropTypes.arrayOf(Object).isRequired,
|
||||
clearAllEmojiStatus: PropTypes.func.isRequired,
|
||||
intl: PropTypes.object.isRequired,
|
||||
};
|
||||
|
||||
const intlMessages = defineMessages({
|
||||
clearStatusMessage: {
|
||||
id: 'app.userList.content.participants.options.clearedStatus',
|
||||
@ -32,14 +26,26 @@ const meetingMuteDisabledLog = () => logger.info({
|
||||
extraInfo: { logType: 'moderator_action' },
|
||||
}, 'moderator disabled meeting mute');
|
||||
|
||||
const UserOptionsContainer = withTracker((props) => {
|
||||
const UserOptionsContainer = (props) => {
|
||||
const isRTL = layoutSelect((i) => i.isRTL);
|
||||
return (
|
||||
<UserOptions
|
||||
{...props}
|
||||
{...{
|
||||
isRTL
|
||||
}}
|
||||
/>
|
||||
)
|
||||
};
|
||||
|
||||
export default injectIntl(withTracker((props) => {
|
||||
const {
|
||||
users,
|
||||
clearAllEmojiStatus,
|
||||
intl,
|
||||
isMeetingMuteOnStart,
|
||||
} = props;
|
||||
|
||||
|
||||
const toggleStatus = () => {
|
||||
clearAllEmojiStatus(users);
|
||||
|
||||
@ -54,10 +60,8 @@ const UserOptionsContainer = withTracker((props) => {
|
||||
const { name } = meetingProp;
|
||||
return name;
|
||||
};
|
||||
|
||||
const isRTL = layoutSelect((i) => i.isRTL);
|
||||
|
||||
return {
|
||||
...props,
|
||||
toggleMuteAllUsers: () => {
|
||||
UserListService.muteAllUsers(Auth.userID);
|
||||
if (isMeetingMuteOnStart) {
|
||||
@ -88,10 +92,5 @@ const UserOptionsContainer = withTracker((props) => {
|
||||
meetingName: getMeetingName(),
|
||||
openLearningDashboardUrl: LearningDashboardService.openLearningDashboardUrl,
|
||||
dynamicGuestPolicy,
|
||||
isRTL,
|
||||
};
|
||||
})(UserOptions);
|
||||
|
||||
UserOptionsContainer.propTypes = propTypes;
|
||||
|
||||
export default injectIntl(UserOptionsContainer);
|
||||
})(UserOptionsContainer));
|
||||
|
Loading…
Reference in New Issue
Block a user