* Update dependencies including Fastlane and disable Flipper on iOS * Remove EventEmitter for previous doc-viewer * Fix android crash when setting more channels buttons * Downgrade fuse.js * Upgrade deps to latest * Update Podfile.lock * Downgrade RNN to 6.4.0 * QA Review #2 * Upgrade fuse.js to 6.0.0
22 lines
672 B
JavaScript
22 lines
672 B
JavaScript
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
import {connect} from 'react-redux';
|
|
|
|
import {getTheme} from '@mm-redux/selectors/entities/preferences';
|
|
|
|
import {isLandscape} from 'app/selectors/device';
|
|
|
|
import ChannelLoader from './channel_loader';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
const channelIsLoading = ownProps.hasOwnProperty('channelIsLoading') ? ownProps.channelIsLoading : state.views.channel.loading;
|
|
|
|
return {
|
|
channelIsLoading,
|
|
theme: getTheme(state),
|
|
isLandscape: isLandscape(state),
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps)(ChannelLoader);
|