summaryrefslogtreecommitdiffstats
path: root/webapp/components/integrations/components/add_incoming_webhook/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/integrations/components/add_incoming_webhook/index.js')
-rw-r--r--webapp/components/integrations/components/add_incoming_webhook/index.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/webapp/components/integrations/components/add_incoming_webhook/index.js b/webapp/components/integrations/components/add_incoming_webhook/index.js
new file mode 100644
index 000000000..ed2b53ba8
--- /dev/null
+++ b/webapp/components/integrations/components/add_incoming_webhook/index.js
@@ -0,0 +1,25 @@
+// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+ import {connect} from 'react-redux';
+ import {bindActionCreators} from 'redux';
+ import {createIncomingHook} from 'mattermost-redux/actions/integrations';
+
+ import AddIncomingWebhook from './add_incoming_webhook.jsx';
+
+ function mapStateToProps(state, ownProps) {
+ return {
+ ...ownProps,
+ createIncomingHookRequest: state.requests.integrations.createIncomingHook
+ };
+ }
+
+ function mapDispatchToProps(dispatch) {
+ return {
+ actions: bindActionCreators({
+ createIncomingHook
+ }, dispatch)
+ };
+ }
+
+ export default connect(mapStateToProps, mapDispatchToProps)(AddIncomingWebhook); \ No newline at end of file