Commit f59835ae authored by Sudheer's avatar Sudheer Committed by sudheer
Browse files

MM-13140 Fix to leave team from MainMenu (#2090)

parent f57ec623
......@@ -2,6 +2,7 @@
// See LICENSE.txt for license information.
import {connect} from 'react-redux';
import {bindActionCreators} from 'redux';
import {getCurrentUserId} from 'mattermost-redux/selectors/entities/users';
import {getCurrentTeamId} from 'mattermost-redux/selectors/entities/teams';
......@@ -22,11 +23,16 @@ function mapStateToProps(state) {
currentUserId,
currentTeamId,
show,
actions: {
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
removeUserFromTeam,
toggleSideBarRightMenu: toggleSideBarRightMenuAction,
},
}, dispatch),
};
}
export default connect(mapStateToProps)(LeaveTeamModal);
export default connect(mapStateToProps, mapDispatchToProps)(LeaveTeamModal);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment