Fix proptype warnings
This commit is contained in:
parent
ab9cf5648b
commit
fe63234dbb
@ -23,7 +23,7 @@ const propTypes = {
|
||||
isUserModerator: PropTypes.bool.isRequired,
|
||||
allowStartStopRecording: PropTypes.bool.isRequired,
|
||||
isRecording: PropTypes.bool.isRequired,
|
||||
record: PropTypes.func.isRequired,
|
||||
record: PropTypes.bool.isRequired,
|
||||
toggleRecording: PropTypes.func.isRequired,
|
||||
meetingIsBreakout: PropTypes.bool.isRequired,
|
||||
hasBreakoutRoom: PropTypes.bool.isRequired,
|
||||
|
@ -49,14 +49,19 @@ const intlMessages = defineMessages({
|
||||
const propTypes = {
|
||||
presentationTitle: PropTypes.string,
|
||||
hasUnreadMessages: PropTypes.bool,
|
||||
beingRecorded: PropTypes.bool,
|
||||
recordProps: PropTypes.objectOf(PropTypes.bool),
|
||||
shortcuts: PropTypes.string,
|
||||
};
|
||||
|
||||
const defaultProps = {
|
||||
presentationTitle: 'Default Room Title',
|
||||
hasUnreadMessages: false,
|
||||
beingRecorded: false,
|
||||
recordProps: {
|
||||
allowStartStopRecording: false,
|
||||
autoStartRecording: false,
|
||||
record: false,
|
||||
recording: false,
|
||||
},
|
||||
shortcuts: '',
|
||||
};
|
||||
|
||||
@ -196,13 +201,13 @@ class NavBar extends PureComponent {
|
||||
render() {
|
||||
const {
|
||||
hasUnreadMessages,
|
||||
beingRecorded,
|
||||
recordProps,
|
||||
isExpanded,
|
||||
intl,
|
||||
shortcuts: TOGGLE_USERLIST_AK,
|
||||
} = this.props;
|
||||
|
||||
const recordingMessage = beingRecorded.recording ? 'recordingIndicatorOn' : 'recordingIndicatorOff';
|
||||
const recordingMessage = recordProps.recording ? 'recordingIndicatorOn' : 'recordingIndicatorOff';
|
||||
|
||||
const toggleBtnClasses = {};
|
||||
toggleBtnClasses[styles.btn] = true;
|
||||
@ -230,11 +235,11 @@ class NavBar extends PureComponent {
|
||||
</div>
|
||||
<div className={styles.center}>
|
||||
{this.renderPresentationTitle()}
|
||||
{beingRecorded.record
|
||||
{recordProps.record
|
||||
? <span className={styles.presentationTitleSeparator}>|</span>
|
||||
: null}
|
||||
<RecordingIndicator
|
||||
{...beingRecorded}
|
||||
{...recordProps}
|
||||
title={intl.formatMessage(intlMessages[recordingMessage])}
|
||||
/>
|
||||
</div>
|
||||
|
@ -64,7 +64,7 @@ export default withTracker(() => {
|
||||
presentationTitle: meetingTitle,
|
||||
hasUnreadMessages: checkUnreadMessages(),
|
||||
isBreakoutRoom: meetingIsBreakout(),
|
||||
beingRecorded: meetingRecorded,
|
||||
recordProps: meetingRecorded,
|
||||
toggleUserList: () => {
|
||||
Session.set('isUserListOpen', !isExpanded);
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user