Continuing updating the reformatting of propTypes and set redux, intl functions to end of component

• Removing:
- the reformatting of propTypes and set redux, intl functions to end of component
This commit is contained in:
mgabdev
2020-08-17 19:57:35 -05:00
parent 46a0cbca7d
commit ddca693cfc
101 changed files with 2053 additions and 2140 deletions

View File

@@ -4,22 +4,7 @@ import { LoadingBar } from 'react-redux-loading-bar'
import { CX } from '../constants'
import ZoomableImage from './zoomable_image'
export default class ImageLoader extends React.PureComponent {
static propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
}
static defaultProps = {
alt: '',
width: null,
height: null,
};
class ImageLoader extends React.PureComponent {
state = {
loading: true,
@@ -186,3 +171,20 @@ export default class ImageLoader extends React.PureComponent {
}
}
ImageLoader.propTypes = {
alt: PropTypes.string,
src: PropTypes.string.isRequired,
previewSrc: PropTypes.string,
width: PropTypes.number,
height: PropTypes.number,
onClick: PropTypes.func,
}
ImageLoader.defaultProps = {
alt: '',
width: null,
height: null,
}
export default ImageLoader