* RN-74 Added updated markdown code block view * Set default channelIsLoading prop to PostList * RN-74 Fixed uneven line numbers on Android * RN-74 Prevented double tapping on markdown code blocks
25 lines
582 B
JavaScript
25 lines
582 B
JavaScript
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getTheme} from 'app/selectors/preferences';
|
|
|
|
import Code from './code';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return {
|
|
theme: getTheme(state),
|
|
...ownProps
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Code);
|