* Add text preview screen * Add text/plain mime in supported docs format * Add previewTextFile method to view text file in TextPreview Screen * Fix delay for ui to update progress * Add styling for text preview screen * Align line numbers on right * Start read file for preview before delay
16 lines
412 B
JavaScript
16 lines
412 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getTheme} from 'mattermost-redux/selectors/entities/preferences';
|
|
|
|
import TextPreview from './text_preview';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
theme: getTheme(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(TextPreview);
|