* 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
25 lines
634 B
JavaScript
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);
|