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,3 +1,5 @@
import React from 'react'
const MIN_SCALE = 1
const MAX_SCALE = 4
@@ -14,7 +16,7 @@ const clamp = (min, max, value) => {
return Math.min(max, Math.max(min, value))
}
export default class ZoomableImage extends PureComponent {
export default class ZoomableImage extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,