Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

InsecureRoomNameLabel.tsx 1.1KB

123456789101112131415161718192021222324252627282930313233
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../../base/i18n/functions';
  4. import { IconExclamationTriangle } from '../../../base/icons/svg';
  5. import Label from '../../../base/label/components/web/Label';
  6. import { COLORS } from '../../../base/label/constants';
  7. import Tooltip from '../../../base/tooltip/components/Tooltip';
  8. import AbstractInsecureRoomNameLabel, { _mapStateToProps } from '../AbstractInsecureRoomNameLabel';
  9. /**
  10. * Renders a label indicating that we are in a room with an insecure name.
  11. */
  12. class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
  13. /**
  14. * Renders the platform dependent content.
  15. *
  16. * @inheritdoc
  17. */
  18. _render() {
  19. return (
  20. <Tooltip
  21. content = { this.props.t('security.insecureRoomNameWarning') }
  22. position = 'bottom'>
  23. <Label
  24. color = { COLORS.red }
  25. icon = { IconExclamationTriangle } />
  26. </Tooltip>
  27. );
  28. }
  29. }
  30. export default translate(connect(_mapStateToProps)(InsecureRoomNameLabel));