mattermost-mobile/app/scenes/load_team/load_team_container.js
Harrison Healey cea81f6497 Reorganized navigation (#181)
* Moved ChannelDrawer into its own scene

* Moved RightSideMenu to a separate route

* Moved title back above scenes

* Moved right side menu into a separate scene

* Reorganized navigation so that it centers around ChannelView when logged in

* Stopped using NavigationExperimental to manage drawers

* Fixed copyright date

* Added unit tests for navigation drawers

* Renamed RightSideMenu to RightMenuDrawer

* Removed unnecessary ChannelDrawer style
2017-01-24 11:56:35 -03:00

35 lines
1 KiB
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 {goToChannelView} from 'app/actions/views/load_team';
import {handleTeamChange} from 'app/actions/views/select_team';
import {init} from 'service/actions/websocket';
import {getCurrentTeam} from 'service/selectors/entities/teams';
import LoadTeam from './load_team.js';
function mapStateToProps(state) {
return {
config: state.entities.general.config,
teamsRequest: state.requests.teams.allTeams,
teams: state.entities.teams.teams,
currentTeam: getCurrentTeam(state),
myMembers: state.entities.teams.myMembers
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
goToChannelView,
handleTeamChange,
initWebsocket: init
}, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(LoadTeam);