Upgrade ESLint to version 4.x (#6276)
This commit is contained in:
parent
fb16c37d2a
commit
0a103c7749
19 changed files with 411 additions and 388 deletions
|
@ -93,7 +93,7 @@ export default class IconButton extends React.PureComponent {
|
|||
|
||||
return (
|
||||
<Motion defaultStyle={{ rotate: active ? -360 : 0 }} style={{ rotate: animate ? spring(active ? -360 : 0, { stiffness: 120, damping: 7 }) : 0 }}>
|
||||
{({ rotate }) =>
|
||||
{({ rotate }) => (
|
||||
<button
|
||||
aria-label={title}
|
||||
aria-pressed={pressed}
|
||||
|
@ -106,7 +106,7 @@ export default class IconButton extends React.PureComponent {
|
|||
>
|
||||
<i style={{ transform: `rotate(${rotate}deg)` }} className={`fa fa-fw fa-${icon}`} aria-hidden='true' />
|
||||
</button>
|
||||
}
|
||||
)}
|
||||
</Motion>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue