mirror of https://github.com/jitsi/jitsi-meet
parent
c523c07cb7
commit
3c180d3932
@ -1,33 +0,0 @@ |
||||
// @flow
|
||||
|
||||
import { Component } from 'react'; |
||||
|
||||
/** |
||||
* The type of the React {@code Component} props of |
||||
* {@link AbstractSlowGUMOverlay}. |
||||
*/ |
||||
type Props = { |
||||
|
||||
/** |
||||
* The function to translate human-readable text. |
||||
*/ |
||||
t: Function |
||||
}; |
||||
|
||||
/** |
||||
* Implements a React {@link Component} for slow gUM overlay. Shown when |
||||
* a slow gUM promise resolution is detected. |
||||
*/ |
||||
export default class AbstractSlowGUMOverlay extends Component<Props> { |
||||
/** |
||||
* Determines whether this overlay needs to be rendered (according to a |
||||
* specific redux state). Called by {@link OverlayContainer}. |
||||
* |
||||
* @param {Object} state - The redux state. |
||||
* @returns {boolean} - If this overlay needs to be rendered, {@code true}; |
||||
* {@code false}, otherwise. |
||||
*/ |
||||
static needsRender(state: Object) { |
||||
return state['features/overlay'].isSlowGUMOverlayVisible; |
||||
} |
||||
} |
@ -1,36 +0,0 @@ |
||||
// @flow
|
||||
import Spinner from '@atlaskit/spinner'; |
||||
import React from 'react'; |
||||
|
||||
import { translate } from '../../../base/i18n'; |
||||
|
||||
import AbstractSlowGUMOverlay from './AbstractSlowGUMOverlay'; |
||||
import OverlayFrame from './OverlayFrame'; |
||||
|
||||
/** |
||||
* Implements a React {@link Component} for slow gUM overlay. Shown when |
||||
* a slow gUM promise resolution is detected. |
||||
*/ |
||||
class SlowGUMOverlay extends AbstractSlowGUMOverlay { |
||||
/** |
||||
* Implements React's {@link Component#render()}. |
||||
* |
||||
* @inheritdoc |
||||
* @returns {ReactElement} |
||||
*/ |
||||
render() { |
||||
// const { t } = this.props;
|
||||
|
||||
return ( |
||||
<OverlayFrame> |
||||
<div className = { 'overlay__spinner-container' }> |
||||
<Spinner |
||||
invertColor = { true } |
||||
size = { 'large' } /> |
||||
</div> |
||||
</OverlayFrame> |
||||
); |
||||
} |
||||
} |
||||
|
||||
export default translate(SlowGUMOverlay); |
Loading…
Reference in new issue