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

@@ -5,25 +5,7 @@ import Icon from './icon'
import Image from './image'
import Text from './text'
export default class FileInput extends React.PureComponent {
static propTypes = {
onChange: PropTypes.func,
file: PropTypes.any,
fileType: PropTypes.string,
disabled: PropTypes.bool,
title: PropTypes.string,
id: PropTypes.string.isRequired,
height: PropTypes.string,
width: PropTypes.string,
isBordered: PropTypes.bool,
className: PropTypes.string,
}
static defaultProps = {
fileType: 'image',
isBordered: false,
}
class FileInput extends React.PureComponent {
state = {
file: this.props.file,
@@ -124,4 +106,24 @@ export default class FileInput extends React.PureComponent {
)
}
}
}
FileInput.propTypes = {
onChange: PropTypes.func,
file: PropTypes.any,
fileType: PropTypes.string,
disabled: PropTypes.bool,
title: PropTypes.string,
id: PropTypes.string.isRequired,
height: PropTypes.string,
width: PropTypes.string,
isBordered: PropTypes.bool,
className: PropTypes.string,
}
FileInput.defaultProps = {
fileType: 'image',
isBordered: false,
}
export default FileInput