0
0
Fork 0

Remove comments for eslint-disable (#3691)

This commit is contained in:
Yamagishi Kazutoshi 2017-06-11 17:42:42 +09:00 committed by Eugen Rochko
parent f3e8bc9f8f
commit 3690f04e4a
8 changed files with 11 additions and 13 deletions

View file

@ -65,11 +65,11 @@ class Notification extends ImmutablePureComponent {
);
}
render () { // eslint-disable-line consistent-return
render () {
const { notification } = this.props;
const account = notification.get('account');
const displayName = account.get('display_name').length > 0 ? account.get('display_name') : account.get('username');
const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) };
const displayNameHTML = { __html: emojify(escapeTextContentForBrowser(displayName)) };
const link = <Permalink className='notification__display-name' href={account.get('url')} title={account.get('acct')} to={`/accounts/${account.get('id')}`} dangerouslySetInnerHTML={displayNameHTML} />;
switch(notification.get('type')) {
@ -82,6 +82,8 @@ class Notification extends ImmutablePureComponent {
case 'reblog':
return this.renderReblog(notification, link);
}
return null;
}
}