You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InsecureRoomNameLabel.tsx 865B

1234567891011121314151617181920212223242526272829
  1. import React from 'react';
  2. import { connect } from 'react-redux';
  3. import { translate } from '../../../base/i18n/functions';
  4. import { IconWarning } from '../../../base/icons/svg';
  5. import Label from '../../../base/label/components/native/Label';
  6. import AbstractInsecureRoomNameLabel, { _mapStateToProps } from '../AbstractInsecureRoomNameLabel';
  7. import styles from './styles';
  8. /**
  9. * Renders a label indicating that we are in a room with an insecure name.
  10. */
  11. class InsecureRoomNameLabel extends AbstractInsecureRoomNameLabel {
  12. /**
  13. * Renders the platform dependent content.
  14. *
  15. * @inheritdoc
  16. */
  17. _render() {
  18. return (
  19. <Label
  20. icon = { IconWarning }
  21. style = { styles.insecureRoomNameLabel } />
  22. );
  23. }
  24. }
  25. export default translate(connect(_mapStateToProps)(InsecureRoomNameLabel));