23 lines
557 B
JavaScript
23 lines
557 B
JavaScript
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
|
|
// See License.txt for license information.
|
|
|
|
import {bindActionCreators} from 'redux';
|
|
import {connect} from 'react-redux';
|
|
|
|
import {goToSelectServer} from 'app/actions/views/root';
|
|
|
|
import Root from './root';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return ownProps;
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
goToSelectServer
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(Root);
|