]> cat aescling's git repositories - mastodon.git/blob - app/javascript/mastodon/features/compose/components/autosuggest_account.js
Improve eslint rules (#3147)
[mastodon.git] / app / javascript / mastodon / features / compose / components / autosuggest_account.js
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
7 class AutosuggestAccount extends ImmutablePureComponent {
8
9 static propTypes = {
10 account: ImmutablePropTypes.map.isRequired,
11 };
12
13 render () {
14 const { account } = this.props;
15
16 return (
17 <div className='autosuggest-account'>
18 <div className='autosuggest-account-icon'><Avatar src={account.get('avatar')} staticSrc={account.get('avatar_static')} size={18} /></div>
19 <DisplayName account={account} />
20 </div>
21 );
22 }
23
24 }
25
26 export default AutosuggestAccount;
This page took 0.124297 seconds and 4 git commands to generate.