mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-27 12:41:37 +01:00
fix some lint errors
This commit is contained in:
parent
65154869df
commit
4b397adb5b
2 changed files with 3 additions and 2 deletions
|
@ -90,11 +90,11 @@ export default class IconButton extends React.PureComponent {
|
||||||
damping: 7,
|
damping: 7,
|
||||||
};
|
};
|
||||||
const motionStyle = {
|
const motionStyle = {
|
||||||
rotate: this.props.animate ? spring(rotateDeg, springOpts) : 0,
|
rotate: animate ? spring(rotateDeg, springOpts) : 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
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 }) =>
|
{({ rotate }) =>
|
||||||
<button
|
<button
|
||||||
aria-label={title}
|
aria-label={title}
|
||||||
|
|
|
@ -3,6 +3,7 @@ import 'font-awesome/css/font-awesome.css';
|
||||||
|
|
||||||
// import common styling
|
// import common styling
|
||||||
require('../styles/common.scss');
|
require('../styles/common.scss');
|
||||||
|
|
||||||
require.context('../images/', true);
|
require.context('../images/', true);
|
||||||
|
|
||||||
start();
|
start();
|
||||||
|
|
Loading…
Reference in a new issue