mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-28 02:50:14 -05:00
4b794e134d
* Migrate to newer version of Font Awesome * Add bot icon to bot avatars
24 lines
484 B
JavaScript
24 lines
484 B
JavaScript
import React from 'react';
|
|
import ImmutablePropTypes from 'react-immutable-proptypes';
|
|
import ImmutablePureComponent from 'react-immutable-pure-component';
|
|
|
|
export default class BotIcon extends ImmutablePureComponent {
|
|
|
|
static propTypes = {
|
|
account: ImmutablePropTypes.map.isRequired,
|
|
};
|
|
|
|
render () {
|
|
const { account } = this.props;
|
|
|
|
if (account.get('bot')) {
|
|
return (
|
|
<i className='fa fa-fw fa-robot bot-icon' />
|
|
);
|
|
}
|
|
|
|
return '';
|
|
}
|
|
|
|
}
|