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:
@@ -9,16 +9,8 @@ const messages = defineMessages({
|
||||
title: { id: 'upload_area.title', defaultMessage: 'Drag & drop to upload' },
|
||||
})
|
||||
|
||||
export default
|
||||
@injectIntl
|
||||
class UploadArea extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
active: PropTypes.bool,
|
||||
onClose: PropTypes.func,
|
||||
intl: PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
handleKeyUp = (e) => {
|
||||
if (!this.props.active) return
|
||||
|
||||
@@ -81,4 +73,12 @@ class UploadArea extends React.PureComponent {
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
UploadArea.propTypes = {
|
||||
active: PropTypes.bool,
|
||||
onClose: PropTypes.func,
|
||||
intl: PropTypes.object.isRequired,
|
||||
}
|
||||
|
||||
export default injectIntl(UploadArea)
|
||||
Reference in New Issue
Block a user