Import PropTypes from prop-types

Prepare for React 16.
This commit is contained in:
Lyubo Marinov
2017-09-27 16:23:31 -05:00
parent 9834e8ac7b
commit 2e2129fa44
104 changed files with 510 additions and 417 deletions

View File

@@ -1,5 +1,8 @@
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { Popover } from '../../base/popover';
import {
MuteButton,
KickButton,
@@ -8,8 +11,6 @@ import {
VolumeSlider
} from './';
import { Popover } from '../../base/popover';
declare var $: Object;
declare var interfaceConfig: Object;
@@ -25,44 +26,44 @@ class RemoteVideoMenuTriggerButton extends Component {
* A value between 0 and 1 indicating the volume of the participant's
* audio element.
*/
initialVolumeValue: React.PropTypes.number,
initialVolumeValue: PropTypes.number,
/**
* Whether or not the participant is currently muted.
*/
isAudioMuted: React.PropTypes.bool,
isAudioMuted: PropTypes.bool,
/**
* Whether or not the participant is a conference moderator.
*/
isModerator: React.PropTypes.bool,
isModerator: PropTypes.bool,
/**
* Callback to invoke when the popover has been displayed.
*/
onMenuDisplay: React.PropTypes.func,
onMenuDisplay: PropTypes.func,
/**
* Callback to invoke choosing to start a remote control session with
* the participant.
*/
onRemoteControlToggle: React.PropTypes.func,
onRemoteControlToggle: PropTypes.func,
/**
* Callback to invoke when changing the level of the participant's
* audio element.
*/
onVolumeChange: React.PropTypes.func,
onVolumeChange: PropTypes.func,
/**
* The ID for the participant on which the remote video menu will act.
*/
participantID: React.PropTypes.string,
participantID: PropTypes.string,
/**
* The current state of the participant's remote control session.
*/
remoteControlState: React.PropTypes.number
remoteControlState: PropTypes.number
};
/**