mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 19:57:47 +00:00
Import PropTypes from prop-types
Prepare for React 16.
This commit is contained in:
@@ -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
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user