* Fix reply count in post header * Make channel loader to trigger manually * post list selector for search * Include date separators in search results * Flagged posts * Recent Mentions * Retry option for flagged posts and recent mentions * feedback review * Update mattermost-redux
18 lines
582 B
JavaScript
18 lines
582 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 ChannelLoader from './channel_loader';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
const {deviceWidth} = state.device.dimension;
|
|
return {
|
|
channelIsLoading: ownProps.channelIsLoading || state.views.channel.loading,
|
|
deviceWidth,
|
|
theme: getTheme(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(ChannelLoader);
|