summaryrefslogtreecommitdiffstats
path: root/webapp/components/create_comment/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/create_comment/index.js')
-rw-r--r--webapp/components/create_comment/index.js16
1 files changed, 16 insertions, 0 deletions
diff --git a/webapp/components/create_comment/index.js b/webapp/components/create_comment/index.js
new file mode 100644
index 000000000..50017461a
--- /dev/null
+++ b/webapp/components/create_comment/index.js
@@ -0,0 +1,16 @@
+// Copyright (c) 2017 Mattermost, Inc. All Rights Reserved.
+// See License.txt for license information.
+
+import {connect} from 'react-redux';
+
+import CreateComment from './create_comment.jsx';
+
+function mapStateToProps(state, ownProps) {
+ const err = state.requests.posts.createPost.error || {};
+ return {
+ ...ownProps,
+ createPostErrorId: err.server_error_id
+ };
+}
+
+export default connect(mapStateToProps)(CreateComment);