]> cat aescling's git repositories - mastodon.git/commitdiff
fix some lint errors
authorOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 19:13:34 +0000 (21:13 +0200)
committerOndřej Hruška <ondra@ondrovo.com>
Mon, 16 Oct 2017 19:13:34 +0000 (21:13 +0200)
app/javascript/mastodon/components/icon_button.js
app/javascript/packs/common.js

index 651b89566b1d0dbdb73b09c5692f56bc2c559b3c..76b0da12fef2bbc325b6d9eb24adfbafbb61f44b 100644 (file)
@@ -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}
index cb47514d352842f5f552c0dd350f233aa7e3e48a..5ac6504d47ad28deb5bef837194fe4956b605052 100644 (file)
@@ -3,6 +3,7 @@ import 'font-awesome/css/font-awesome.css';
 
 // import common styling
 require('../styles/common.scss');
+
 require.context('../images/', true);
 
 start();
This page took 0.026929 seconds and 3 git commands to generate.