mattermost-mobile/app/components/options_modal/options_modal_container.js
enahum bfd70f742c Modal with options (#179)
* modal options and channel long press

* PureComponent optimization (#183)

* Bug fix when leaving the current channel

* Rebased with new navigation

* Add disabled drawer to unit test

* re-organize modal up in the stack and controlled by redux

* renaming modalOptions to optionsModal
2017-01-30 08:41:14 -05:00

25 lines
634 B
JavaScript

// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {closeModal} from 'app/actions/views/options_modal';
import OptionsModal from './options_modal';
function mapStateToProps(state, ownProps) {
return {
...ownProps,
...state.views.optionsModal
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
closeModal
}, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(OptionsModal);