mirror of https://github.com/jitsi/jitsi-meet
feat(indicators): move the "top toolbar" indicators to react (#1699)
* feat(indicators): move the "top toolbar" indicators to react * wrap baseindicatorpull/1763/head jitsi-meet_2231
parent
fcda36a8e0
commit
0481e4cf00
@ -0,0 +1,43 @@ |
||||
import React, { Component } from 'react'; |
||||
|
||||
import BaseIndicator from './BaseIndicator'; |
||||
|
||||
/** |
||||
* Thumbnail badge showing that the participant is the dominant speaker in |
||||
* the conference. |
||||
* |
||||
* @extends Component |
||||
*/ |
||||
class DominantSpeakerIndicator extends Component { |
||||
/** |
||||
* {@code DominantSpeakerIndicator} component's property types. |
||||
* |
||||
* @static |
||||
*/ |
||||
static propTypes = { |
||||
/** |
||||
* The font-size for the icon. |
||||
* |
||||
* @type {number} |
||||
*/ |
||||
iconSize: React.PropTypes.number |
||||
}; |
||||
|
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
*/ |
||||
render() { |
||||
return ( |
||||
<BaseIndicator |
||||
className = 'indicator show-inline' |
||||
iconClassName = 'indicatoricon fa fa-bullhorn' |
||||
iconSize = { `${this.props.iconSize}px` } |
||||
id = 'dominantspeakerindicator' |
||||
tooltipKey = 'speaker' /> |
||||
); |
||||
} |
||||
} |
||||
|
||||
export default DominantSpeakerIndicator; |
@ -0,0 +1,41 @@ |
||||
import React, { Component } from 'react'; |
||||
|
||||
import BaseIndicator from './BaseIndicator'; |
||||
|
||||
/** |
||||
* Thumbnail badge showing that the participant would like to speak. |
||||
* |
||||
* @extends Component |
||||
*/ |
||||
class RaisedHandIndicator extends Component { |
||||
/** |
||||
* {@code RaisedHandIndicator} component's property types. |
||||
* |
||||
* @static |
||||
*/ |
||||
static propTypes = { |
||||
/** |
||||
* The font-size for the icon. |
||||
* |
||||
* @type {number} |
||||
*/ |
||||
iconSize: React.PropTypes.number |
||||
}; |
||||
|
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
*/ |
||||
render() { |
||||
return ( |
||||
<BaseIndicator |
||||
className = 'raisehandindicator indicator show-inline' |
||||
iconClassName = 'icon-raised-hand indicatoricon' |
||||
iconSize = { `${this.props.iconSize}px` } |
||||
tooltipKey = 'raisedHand' /> |
||||
); |
||||
} |
||||
} |
||||
|
||||
export default RaisedHandIndicator; |
@ -1,3 +1,6 @@ |
||||
export { default as AudioMutedIndicator } from './AudioMutedIndicator'; |
||||
export { default as DominantSpeakerIndicator } |
||||
from './DominantSpeakerIndicator'; |
||||
export { default as ModeratorIndicator } from './ModeratorIndicator'; |
||||
export { default as RaisedHandIndicator } from './RaisedHandIndicator'; |
||||
export { default as VideoMutedIndicator } from './VideoMutedIndicator'; |
||||
|
Loading…
Reference in new issue