* Fix advance settings android layout * include react-native-image-gallery dependency * ImageCacheManager * Add support for isGif, isDocument, isVideo and purge to file utils * Remove file fetch cache * include progressive image component * Refactor image previewer * Add image preview support for open graph and embed images * Cache user profile picture * Fix post additional content images for android * Preview markdown inline images * Improve progressive image * feedback review
30 lines
832 B
JavaScript
30 lines
832 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
|
|
|
|
import {handleRemoveFile, retryFileUpload, uploadComplete, uploadFailed} from 'app/actions/views/file_upload';
|
|
|
|
import FileUploadItem from './file_upload_item';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
theme: getTheme(state),
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
handleRemoveFile,
|
|
retryFileUpload,
|
|
uploadComplete,
|
|
uploadFailed,
|
|
}, dispatch),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(FileUploadItem);
|