aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/MessageInput.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-20 10:15:31 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:52 +0300
commitfd18ac5cd96f76a39de57bb6a877d3f0faf7c528 (patch)
tree21744e1a82b15213793b3b81489afa02d5a776f5 /vnext/src/components/MessageInput.js
parent95f9a337435091188b02d4545b7507f47fef34cc (diff)
refactoring
Diffstat (limited to 'vnext/src/components/MessageInput.js')
-rw-r--r--vnext/src/components/MessageInput.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/vnext/src/components/MessageInput.js b/vnext/src/components/MessageInput.js
new file mode 100644
index 00000000..2a7eab1d
--- /dev/null
+++ b/vnext/src/components/MessageInput.js
@@ -0,0 +1,26 @@
+import React from 'react';
+
+import { MessageType } from './Types';
+
+export default class MessageInput extends React.Component {
+ constructor(props) {
+ super(props)
+ }
+ render() {
+ const msg = this.props.data;
+ return (
+ <form className="msg-comment-target">
+ <input type="hidden" name="mid" value={msg.mid} />
+ <div className="msg-comment">
+ <div className="ta-wrapper">
+ <textarea name="body" rows="1" className="reply" placeholder="Write a comment..."></textarea>
+ </div>
+ </div>
+ </form>
+ )
+ }
+}
+
+MessageInput.propTypes = {
+ data: MessageType
+}; \ No newline at end of file