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.

Avatar.web.js 545B

1234567891011121314151617181920212223242526272829
  1. import React, { Component } from 'react';
  2. /**
  3. * Display a participant avatar.
  4. */
  5. export default class Avatar extends Component {
  6. /**
  7. * Avatar component's property types.
  8. *
  9. * @static
  10. */
  11. static propTypes = {
  12. /**
  13. * The URL for the avatar.
  14. *
  15. * @type {string}
  16. */
  17. uri: React.PropTypes.string
  18. };
  19. /**
  20. * Implements React's {@link Component#render()}.
  21. *
  22. * @inheritdoc
  23. */
  24. render() {
  25. return <img src = { this.props.uri } />;
  26. }
  27. }