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:
@@ -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
|
||||
Reference in New Issue
Block a user