logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

autosuggest_account.js (689B)


  1. import React from 'react';
  2. import Avatar from '../../../components/avatar';
  3. import DisplayName from '../../../components/display_name';
  4. import ImmutablePropTypes from 'react-immutable-proptypes';
  5. import ImmutablePureComponent from 'react-immutable-pure-component';
  6. export default class AutosuggestAccount extends ImmutablePureComponent {
  7. static propTypes = {
  8. account: ImmutablePropTypes.map.isRequired,
  9. };
  10. render () {
  11. const { account } = this.props;
  12. return (
  13. <div className='autosuggest-account'>
  14. <div className='autosuggest-account-icon'><Avatar account={account} size={18} /></div>
  15. <DisplayName account={account} />
  16. </div>
  17. );
  18. }
  19. }