about summary refs log tree commit diff
path: root/app/javascript
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-10-16 21:13:34 +0200
committerOndřej Hruška <ondra@ondrovo.com>2017-10-16 21:13:34 +0200
commit4b397adb5bfb07be587c788e6e10962aa383d25f (patch)
treec4f347d14bc93df61a534b104f529c59c762ce73 /app/javascript
parent65154869df7ceb05f8cc443cf3a7c86533f065a4 (diff)
fix some lint errors
Diffstat (limited to 'app/javascript')
-rw-r--r--app/javascript/mastodon/components/icon_button.js4
-rw-r--r--app/javascript/packs/common.js1
2 files changed, 3 insertions, 2 deletions
diff --git a/app/javascript/mastodon/components/icon_button.js b/app/javascript/mastodon/components/icon_button.js
index 651b89566..76b0da12f 100644
--- a/app/javascript/mastodon/components/icon_button.js
+++ b/app/javascript/mastodon/components/icon_button.js
@@ -90,11 +90,11 @@ export default class IconButton extends React.PureComponent {
       damping: 7,
     };
     const motionStyle = {
-      rotate: this.props.animate ? spring(rotateDeg, springOpts) : 0,
+      rotate: animate ? spring(rotateDeg, springOpts) : 0,
     };
 
     return (
-      <Motion defaultStyle={{ rotate: active ? -360 : 0 }} style={{ rotate: animate ? spring(active ? -360 : 0, { stiffness: 120, damping: 7 }) : 0 }}>
+      <Motion defaultStyle={motionDefaultStyle} style={motionStyle}>
         {({ rotate }) =>
           <button
             aria-label={title}
diff --git a/app/javascript/packs/common.js b/app/javascript/packs/common.js
index cb47514d3..5ac6504d4 100644
--- a/app/javascript/packs/common.js
+++ b/app/javascript/packs/common.js
@@ -3,6 +3,7 @@ import 'font-awesome/css/font-awesome.css';
 
 // import common styling
 require('../styles/common.scss');
+
 require.context('../images/', true);
 
 start();