Files
mostlymatter/webapp/components/admin_console/system_users/index.js
Joram Wilander 1138dd6770 PLT-6657 Move system console to use v4 endpoints and redux (#6572)
* Move system console to use v4 endpoints and redux

* Rename logs dir to get past gitignore

* Fix test email

* Update brand unit test

* Updates per feedback
2017-06-14 08:56:56 -04:00

31 строка
819 B
JavaScript

// 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, getTeamStats} from 'mattermost-redux/actions/teams';
import {getUser} from 'mattermost-redux/actions/users';
import {getTeamsList} from 'mattermost-redux/selectors/entities/teams';
import SystemUsers from './system_users.jsx';
function mapStateToProps(state, ownProps) {
return {
teams: getTeamsList(state),
...ownProps
};
}
function mapDispatchToProps(dispatch) {
return {
actions: bindActionCreators({
getTeams,
getTeamStats,
getUser
}, dispatch)
};
}
export default connect(mapStateToProps, mapDispatchToProps)(SystemUsers);