Fade out fullscreen button
parent
4f8c896a43
commit
e3b85adb35
|
|
@ -11,7 +11,8 @@ const FullScreenView = (props) =>
|
||||||
const {
|
const {
|
||||||
advancedMode,
|
advancedMode,
|
||||||
consumer,
|
consumer,
|
||||||
toggleConsumerFullscreen
|
toggleConsumerFullscreen,
|
||||||
|
toolbarsVisible
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
if (!consumer)
|
if (!consumer)
|
||||||
|
|
@ -39,7 +40,9 @@ const FullScreenView = (props) =>
|
||||||
|
|
||||||
<div className='controls'>
|
<div className='controls'>
|
||||||
<div
|
<div
|
||||||
className={classnames('button', 'fullscreen')}
|
className={classnames('button', 'fullscreen', 'room-controls', {
|
||||||
|
visible: toolbarsVisible
|
||||||
|
})}
|
||||||
onClick={(e) =>
|
onClick={(e) =>
|
||||||
{
|
{
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
|
|
@ -63,13 +66,15 @@ FullScreenView.propTypes =
|
||||||
{
|
{
|
||||||
advancedMode : PropTypes.bool,
|
advancedMode : PropTypes.bool,
|
||||||
consumer : appPropTypes.Consumer,
|
consumer : appPropTypes.Consumer,
|
||||||
toggleConsumerFullscreen : PropTypes.func.isRequired
|
toggleConsumerFullscreen : PropTypes.func.isRequired,
|
||||||
|
toolbarsVisible : PropTypes.bool
|
||||||
};
|
};
|
||||||
|
|
||||||
const mapStateToProps = (state) =>
|
const mapStateToProps = (state) =>
|
||||||
{
|
{
|
||||||
return {
|
return {
|
||||||
consumer : state.consumers[state.room.fullScreenConsumer]
|
consumer : state.consumers[state.room.fullScreenConsumer],
|
||||||
|
toolbarsVisible : state.room.toolbarsVisible
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue