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.js 790B

123456789101112131415161718192021222324252627282930
  1. // @flow
  2. import React from 'react';
  3. import { IconWarning } from '../../../base/icons';
  4. import { Label } from '../../../base/label';
  5. import { connect } from '../../../base/redux';
  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 connect(_mapStateToProps)(InsecureRoomNameLabel);