aboutsummaryrefslogtreecommitdiff
path: root/app/javascript/mastodon/features/ui/components/modal_root.js
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-06 20:20:07 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-06 13:20:07 +0200
commitd8ae3efec39cc0d05410629a267b07295b93c59b (patch)
tree684d0c953616fa408aa6d78a09b654cf94dcc6c2 /app/javascript/mastodon/features/ui/components/modal_root.js
parentcd81a1c52a43e6bed17ba86cef343086a44cd5e9 (diff)
downloadmastodon-d8ae3efec39cc0d05410629a267b07295b93c59b.tar
mastodon-d8ae3efec39cc0d05410629a267b07295b93c59b.tar.gz
mastodon-d8ae3efec39cc0d05410629a267b07295b93c59b.tar.bz2
mastodon-d8ae3efec39cc0d05410629a267b07295b93c59b.zip
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/features/ui/components/modal_root.js')
-rw-r--r--app/javascript/mastodon/features/ui/components/modal_root.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/javascript/mastodon/features/ui/components/modal_root.js b/app/javascript/mastodon/features/ui/components/modal_root.js
index 13629da41..0f68cfbdf 100644
--- a/app/javascript/mastodon/features/ui/components/modal_root.js
+++ b/app/javascript/mastodon/features/ui/components/modal_root.js
@@ -64,7 +64,8 @@ class ModalRoot extends React.PureComponent {
<TransitionMotion
styles={items}
willEnter={this.willEnter}
- willLeave={this.willLeave}>
+ willLeave={this.willLeave}
+ >
{interpolatedStyles =>
<div className='modal-root'>
{interpolatedStyles.map(({ key, data: { type, props }, style }) => {