mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-11-02 07:21:11 +01:00
5942347407
* Refactored Avatar and AvatarOverlay (DRY) to have 'account' as prop. Also removed animate attribute from compose navigation bar, which should have never been there. Added test for avatar overlay. * fix broken tests * god dammit another bug in tests! travis please let this pass * formatting in avatar overlay
24 lines
689 B
JavaScript
24 lines
689 B
JavaScript
import React from 'react';
|
|
import Avatar from '../../../components/avatar';
|
|
import DisplayName from '../../../components/display_name';
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
|
|
|
export default class AutosuggestAccount extends ImmutablePureComponent {
|
|
|
|
static propTypes = {
|
|
account: ImmutablePropTypes.map.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { account } = this.props;
|
|
|
|
return (
|
|
<div className='autosuggest-account'>
|
|
<div className='autosuggest-account-icon'><Avatar account={account} size={18} /></div>
|
|
<DisplayName account={account} />
|
|
</div>
|
|
);
|
|
}
|
|
|
|
}
|