mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Disable ESLint rule jsx/anchor-has-content (#3601)
This commit is contained in:
parent
7adac1bc51
commit
e969c78645
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ class Item extends React.PureComponent {
|
||||||
|
|
||||||
if (attachment.get('type') === 'image') {
|
if (attachment.get('type') === 'image') {
|
||||||
thumbnail = (
|
thumbnail = (
|
||||||
<a
|
<a // eslint-disable-line jsx-a11y/anchor-has-content
|
||||||
className='media-gallery__item-thumbnail'
|
className='media-gallery__item-thumbnail'
|
||||||
href={attachment.get('remote_url') || attachment.get('url')}
|
href={attachment.get('remote_url') || attachment.get('url')}
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
|
|
|
@ -52,7 +52,7 @@ class Avatar extends ImmutablePureComponent {
|
||||||
return (
|
return (
|
||||||
<Motion defaultStyle={{ radius: 90 }} style={{ radius: spring(isHovered ? 30 : 90, { stiffness: 180, damping: 12 }) }}>
|
<Motion defaultStyle={{ radius: 90 }} style={{ radius: spring(isHovered ? 30 : 90, { stiffness: 180, damping: 12 }) }}>
|
||||||
{({ radius }) =>
|
{({ radius }) =>
|
||||||
<a
|
<a // eslint-disable-line jsx-a11y/anchor-has-content
|
||||||
href={account.get('url')}
|
href={account.get('url')}
|
||||||
className='account__header__avatar'
|
className='account__header__avatar'
|
||||||
target='_blank'
|
target='_blank'
|
||||||
|
|
Loading…
Reference in a new issue