mattermost-mobile/src/containers/select_team_container.js
Mike Piccolo 0697bfc066 Mp containers (#26)
* Use containers to map state and dispatch

* Remove unnecessary aslint config

* Remove container from route function

* Change containers to pure containers
2016-10-18 10:51:52 -04:00

21 lines
581 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 * as teamActions from 'actions/teams';
import SelectTeamView from 'components/select_team_view';
function mapStateToProps(state) {
return {
teams: state.entities.teams
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators(teamActions, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(SelectTeamView);