diff options
author | Yamagishi Kazutoshi <ykzts@desire.sh> | 2017-06-06 20:20:07 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-06-06 13:20:07 +0200 |
commit | d8ae3efec39cc0d05410629a267b07295b93c59b (patch) | |
tree | 684d0c953616fa408aa6d78a09b654cf94dcc6c2 /app/javascript/mastodon/components/icon_button.js | |
parent | cd81a1c52a43e6bed17ba86cef343086a44cd5e9 (diff) |
Improve ESLint rules for JSX (#3608)
* Add react/no-string-refs ESLint rule * Add react/jsx-boolean-value ESLint rule * Add react/jsx-closing-bracket-location ESLint rule * Add react/jsx-indent ESLint rule * Add react/jsx-curly-spacing ESLint rule * Add react/jsx-equals-spacing ESLint rule * Add react/jsx-first-prop-new-line ESLint rule * Add react/jsx-no-duplicate-props ESLint rule * Add react/jsx-tag-spacing ESLint rule
Diffstat (limited to 'app/javascript/mastodon/components/icon_button.js')
-rw-r--r-- | app/javascript/mastodon/components/icon_button.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js index c8df589b6..302e63df5 100644 --- a/app/javascript/mastodon/components/icon_button.js +++ b/app/javascript/mastodon/components/icon_button.js @@ -76,7 +76,8 @@ class IconButton extends React.PureComponent { title={this.props.title} className={classes.join(' ')} onClick={this.handleClick} - style={style}> + style={style} + > <i style={{ transform: `rotate(${rotate}deg)` }} className={`fa fa-fw fa-${this.props.icon}`} aria-hidden='true' /> </button> } |