forked from Ivasoft/mattermost-mobile
* Improve performance of the channel drawer * Feedback review * Fix makefile * Feedback review 3 * Fix areStatesEqual * Fix Android SVG
20 lines
527 B
JavaScript
20 lines
527 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 {getDimensions} from 'app/selectors/device';
|
|
|
|
import DraweSwiper from './drawer_swiper';
|
|
|
|
function mapStateToProps(state) {
|
|
return {
|
|
...getDimensions(state),
|
|
theme: getTheme(state)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, null, null, {withRef: true})(DraweSwiper);
|