Remove React, PureComponent global import, added those imports to files directly

• Remove:
- React, PureComponent global import and added those imports to files directly
This commit is contained in:
mgabdev
2020-08-17 15:07:16 -05:00
parent 92a89e2425
commit 43e384554c
293 changed files with 572 additions and 313 deletions

View File

@@ -1,6 +1,7 @@
// Like react-motion's Motion, but reduces all animations to cross-fades
// for the benefit of users with motion sickness.
import Motion from 'react-motion/lib/Motion';
import React from 'react'
const stylesToKeep = ['opacity', 'backgroundOpacity'];
@@ -9,7 +10,7 @@ const extractValue = (value) => {
return (typeof value === 'object' && value && 'val' in value) ? value.val : value;
};
class ReducedMotion extends PureComponent {
class ReducedMotion extends React.PureComponent {
static propTypes = {
defaultStyle: PropTypes.object,