about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-06 10:55:56 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-06 03:55:56 +0200
commite969c7864529900ebb106769883000cbe8752ec9 (patch)
treefcbaeffb40f72f1c6a80a7d210f132e724b22e46 /app
parent7adac1bc51d76fde4df51f4f3d18cf39b01516a4 (diff)
Disable ESLint rule jsx/anchor-has-content (#3601)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/components/media_gallery.js2
-rw-r--r--app/javascript/mastodon/features/account/components/header.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/media_gallery.js b/app/javascript/mastodon/components/media_gallery.js
index baa7f9afa..3fde7eca7 100644
--- a/app/javascript/mastodon/components/media_gallery.js
+++ b/app/javascript/mastodon/components/media_gallery.js
@@ -86,7 +86,7 @@ class Item extends React.PureComponent {
 
     if (attachment.get('type') === 'image') {
       thumbnail = (
-        <a
+        <a // eslint-disable-line jsx-a11y/anchor-has-content
           className='media-gallery__item-thumbnail'
           href={attachment.get('remote_url') || attachment.get('url')}
           onClick={this.handleClick}
diff --git a/app/javascript/mastodon/features/account/components/header.js b/app/javascript/mastodon/features/account/components/header.js
index e71d72112..1a3eb086f 100644
--- a/app/javascript/mastodon/features/account/components/header.js
+++ b/app/javascript/mastodon/features/account/components/header.js
@@ -52,7 +52,7 @@ class Avatar extends ImmutablePureComponent {
     return (
       <Motion defaultStyle={{ radius: 90 }} style={{ radius: spring(isHovered ? 30 : 90, { stiffness: 180, damping: 12 }) }}>
         {({ radius }) =>
-          <a
+          <a // eslint-disable-line jsx-a11y/anchor-has-content
             href={account.get('url')}
             className='account__header__avatar'
             target='_blank'