* Add user access token UI * Fix enter press and update mattermost-redux * Updating UI for access token stuff (#7066) * Revert segment key
25 строки
638 B
JavaScript
25 строки
638 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 {revokeUserAccessToken} from 'mattermost-redux/actions/users';
|
|
|
|
import RevokeTokenButton from './revoke_token_button.jsx';
|
|
|
|
function mapStateToProps(state, ownProps) {
|
|
return {
|
|
...ownProps
|
|
};
|
|
}
|
|
|
|
function mapDispatchToProps(dispatch) {
|
|
return {
|
|
actions: bindActionCreators({
|
|
revokeUserAccessToken
|
|
}, dispatch)
|
|
};
|
|
}
|
|
|
|
export default connect(mapStateToProps, mapDispatchToProps)(RevokeTokenButton);
|