diff options
Diffstat (limited to 'webapp/components/integrations/components/add_oauth_app/index.js')
-rw-r--r-- | webapp/components/integrations/components/add_oauth_app/index.js | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/webapp/components/integrations/components/add_oauth_app/index.js b/webapp/components/integrations/components/add_oauth_app/index.js new file mode 100644 index 000000000..be3446c45 --- /dev/null +++ b/webapp/components/integrations/components/add_oauth_app/index.js @@ -0,0 +1,25 @@ +// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved. +// See License.txt for license information. + +import {connect} from 'react-redux'; +import {bindActionCreators} from 'redux'; +import {addOAuthApp} from 'mattermost-redux/actions/integrations'; + +import AddOAuthApp from './add_oauth_app.jsx'; + +function mapStateToProps(state, ownProps) { + return { + ...ownProps, + addOAuthAppRequest: state.requests.integrations.addOAuthApp + }; +} + +function mapDispatchToProps(dispatch) { + return { + actions: bindActionCreators({ + addOAuthApp + }, dispatch) + }; +} + +export default connect(mapStateToProps, mapDispatchToProps)(AddOAuthApp); |