fix some lint errors

remotes/1727458204337373841/tmp_refs/heads/signup-info-prompt
Ondřej Hruška 2017-10-16 21:13:34 +02:00
parent 65154869df
commit 4b397adb5b
No known key found for this signature in database
GPG Key ID: 2C5FD5035250423D
2 changed files with 3 additions and 2 deletions

View 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}

View File

@ -3,6 +3,7 @@ import 'font-awesome/css/font-awesome.css';
// import common styling
require('../styles/common.scss');
require.context('../images/', true);
start();