Updating client dependencies. Switching to yarn. (#6433)
* Updating client dependancies. Switching to using yarn. * Updating React * Moving pure components to using function syntax (performance gains with newer react version) * Updating client dependancies. * Ignore .yarninstall * Enabling pre-lockfile because it's the entire point of using yarn. * Removing old webpack config * Moving to new prop-types * Fixing ESLint Errors * Updating jest snapshots. * Cleaning up package.json
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
63e599c43b
Коммит
2bbedd9def
@@ -33,6 +33,8 @@ const holders = defineMessages({
|
||||
}
|
||||
});
|
||||
|
||||
import PropTypes from 'prop-types';
|
||||
|
||||
import React from 'react';
|
||||
|
||||
const OverlayTimeout = 500;
|
||||
@@ -422,19 +424,19 @@ class FileUpload extends React.Component {
|
||||
|
||||
FileUpload.propTypes = {
|
||||
intl: intlShape.isRequired,
|
||||
onUploadError: React.PropTypes.func,
|
||||
getFileCount: React.PropTypes.func,
|
||||
getTarget: React.PropTypes.func.isRequired,
|
||||
onClick: React.PropTypes.func,
|
||||
onFileUpload: React.PropTypes.func,
|
||||
onUploadStart: React.PropTypes.func,
|
||||
onFileUploadChange: React.PropTypes.func,
|
||||
onTextDrop: React.PropTypes.func,
|
||||
channelId: React.PropTypes.string,
|
||||
postType: React.PropTypes.string,
|
||||
onEmojiClick: React.PropTypes.func,
|
||||
navBarName: React.PropTypes.string,
|
||||
emojiEnabled: React.PropTypes.bool
|
||||
onUploadError: PropTypes.func,
|
||||
getFileCount: PropTypes.func,
|
||||
getTarget: PropTypes.func.isRequired,
|
||||
onClick: PropTypes.func,
|
||||
onFileUpload: PropTypes.func,
|
||||
onUploadStart: PropTypes.func,
|
||||
onFileUploadChange: PropTypes.func,
|
||||
onTextDrop: PropTypes.func,
|
||||
channelId: PropTypes.string,
|
||||
postType: PropTypes.string,
|
||||
onEmojiClick: PropTypes.func,
|
||||
navBarName: PropTypes.string,
|
||||
emojiEnabled: PropTypes.bool
|
||||
};
|
||||
|
||||
export default injectIntl(FileUpload, {withRef: true});
|
||||
|
||||
Ссылка в новой задаче
Block a user