diff options
author | Corey Hulen <corey@hulen.com> | 2015-09-03 13:37:25 -0700 |
---|---|---|
committer | Corey Hulen <corey@hulen.com> | 2015-09-03 13:37:25 -0700 |
commit | 4f0c06114b61c92d982baac1c54ed80da93a9cc9 (patch) | |
tree | fa949f1269931b4d62bddda23e26a5dcdff9ac14 /web/react/components/mention.jsx | |
parent | b3fea25eddc332e9529692733093291b10d4aeef (diff) | |
parent | 570327463ca06c23b5b54b9ec93152535836f2c0 (diff) | |
download | chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.gz chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.tar.bz2 chat-4f0c06114b61c92d982baac1c54ed80da93a9cc9.zip |
Merge pull request #591 from mattermost/mm-1909
MM-1909 Upgrading ESLint, turning on new rules, enabling some warnings, optimizations
Diffstat (limited to 'web/react/components/mention.jsx')
-rw-r--r-- | web/react/components/mention.jsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/web/react/components/mention.jsx b/web/react/components/mention.jsx index 72a2a6251..3a09e843d 100644 --- a/web/react/components/mention.jsx +++ b/web/react/components/mention.jsx @@ -19,11 +19,14 @@ export default class Mention extends React.Component { if (this.props.id === 'allmention' || this.props.id === 'channelmention') { icon = <span><i className='mention-img fa fa-users fa-2x'></i></span>; } else if (this.props.id != null) { - icon = (<span><img - className='mention-img' - src={'/api/v1/users/' + this.props.id + '/image?time=' + timestamp} - /> - </span>); + icon = ( + <span> + <img + className='mention-img' + src={'/api/v1/users/' + this.props.id + '/image?time=' + timestamp} + /> + </span> + ); } else { icon = <span><i className='mention-img fa fa-users fa-2x'></i></span>; } |