From 7307156c49b194c4afd946cd9e57715d45b5b21d Mon Sep 17 00:00:00 2001 From: Joram Wilander Date: Wed, 26 Apr 2017 15:49:15 -0400 Subject: PLT-6213 Move team store and actions over to use redux (#6222) * Move team store and actions over to user redux * Fix JS error when inviting by email --- webapp/components/select_team/index.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 webapp/components/select_team/index.js (limited to 'webapp/components/select_team/index.js') diff --git a/webapp/components/select_team/index.js b/webapp/components/select_team/index.js new file mode 100644 index 000000000..87691a853 --- /dev/null +++ b/webapp/components/select_team/index.js @@ -0,0 +1,24 @@ +// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; +import {getTeams} from 'mattermost-redux/actions/teams'; + +import SelectTeam from './select_team.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps + }; +} + +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + getTeams + }, dispatch) + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(SelectTeam); -- cgit v1.2.3-1-g7c22