Merge pull request #5915 from BobakOftadeh/propTypes-screen-share

Added propTypes to screenshare variables
This commit is contained in:
Anton Georgiev 2018-07-25 09:53:39 -04:00 committed by GitHub
commit d178988805
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -8,6 +8,9 @@ import { styles } from '../styles';
const propTypes = {
intl: intlShape.isRequired,
isUserPresenter: PropTypes.bool.isRequired,
handleShareScreen: PropTypes.func.isRequired,
handleUnshareScreen: PropTypes.func.isRequired,
isVideoBroadcasting: PropTypes.bool.isRequired,
};
const intlMessages = defineMessages({
@ -47,9 +50,9 @@ const DesktopShare = ({
className={styles.button}
icon="desktop"
label={intl.formatMessage(isVideoBroadcasting ?
intlMessages.stopDesktopShareLabel : intlMessages.desktopShareLabel)}
intlMessages.stopDesktopShareLabel : intlMessages.desktopShareLabel)}
description={intl.formatMessage(isVideoBroadcasting ?
intlMessages.stopDesktopShareDesc : intlMessages.desktopShareDesc)}
intlMessages.stopDesktopShareDesc : intlMessages.desktopShareDesc)}
color="primary"
ghost={false}
hideLabel