* Remove serverVersion check to allow GitLab login * Avoid unncessary re-renders on the root screen * Avoid unncessary re-renders on the options modal screen * Avoid unncessary re-renders on the thread screen * Avoid unncessary re-renders on the offline indicator component * Avoid unncessary re-renders on the channel loader component * review feedback
28 lines
683 B
JavaScript
28 lines
683 B
JavaScript
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {loadMe} from 'mattermost-redux/actions/users';
|
|
|
|
import {getTheme} from 'app/selectors/preferences';
|
|
|
|
import Root from './root';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
credentials: state.entities.general.credentials,
|
|
theme: getTheme(state)
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
loadMe
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Root);
|