Navigation header now responds to theme changes Improve channel selection transition Implement navigation modal Reword options modal
26 lines
672 B
JavaScript
26 lines
672 B
JavaScript
// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
|
|
import navigationSceneConnect from '../navigationSceneConnect';
|
|
|
|
import {goBack} from 'app/actions/navigation';
|
|
import OptionsModal from './options_modal';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return {
|
|
...state.views.optionsModal,
|
|
...ownProps
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
closeModal: goBack
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default navigationSceneConnect(mapStateToProps, mapDispatchToProps)(OptionsModal);
|