mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Video quality label now becomes "performance settings". All CSS for labels is moved to JS. Overflow menu button is also changed to "performance settings".
36 lines
1.0 KiB
JavaScript
36 lines
1.0 KiB
JavaScript
// @flow
|
|
|
|
import Tooltip from '@atlaskit/tooltip';
|
|
import React from 'react';
|
|
|
|
import { translate } from '../../../base/i18n';
|
|
import { IconWarning } from '../../../base/icons';
|
|
import { Label } from '../../../base/label';
|
|
import { COLORS } from '../../../base/label/constants';
|
|
import { connect } from '../../../base/redux';
|
|
import AbstractInsecureRoomNameLabel, { _mapStateToProps } from '../AbstractInsecureRoomNameLabel';
|
|
|
|
/**
|
|
* Renders a label indicating that we are in a room with an insecure name.
|
|
*/
|
|
class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
|
|
/**
|
|
* Renders the platform dependent content.
|
|
*
|
|
* @inheritdoc
|
|
*/
|
|
_render() {
|
|
return (
|
|
<Tooltip
|
|
content = { this.props.t('security.insecureRoomNameWarning') }
|
|
position = 'bottom'>
|
|
<Label
|
|
color = { COLORS.red }
|
|
icon = { IconWarning } />
|
|
</Tooltip>
|
|
);
|
|
}
|
|
}
|
|
|
|
export default translate(connect(_mapStateToProps)(InsecureRoomNameLabel));
|