CommentForm.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import React from 'react';
  2. import PropTypes from 'prop-types';
  3. import FormControl from 'react-bootstrap/es/FormControl';
  4. import Button from 'react-bootstrap/es/Button';
  5. import UserPicture from '../User/UserPicture';
  6. /**
  7. *
  8. * @author Yuki Takei <yuki@weseek.co.jp>
  9. *
  10. * @export
  11. * @class Comment
  12. * @extends {React.Component}
  13. */
  14. export default class CommentForm extends React.Component {
  15. constructor(props) {
  16. super(props);
  17. this.state = {
  18. value: ''
  19. };
  20. }
  21. render() {
  22. return (
  23. <div className="comment-form">
  24. <div className="comment-form-user">
  25. </div>
  26. <div className="comment-form-main">
  27. <div className="comment-write comment-form-editor">
  28. <textarea className="comment-form-comment form-control" id="comment-form-comment" name="commentForm[comment]" required placeholder="Write comments here..." >
  29. </textarea>
  30. <div className="form-check">
  31. <input type="checkbox" className="form-check-input" id="checkbox-markdown" />
  32. <label className="form-check-label" htmlFor="checkbox-markdown">Markdown</label>
  33. </div>
  34. </div>
  35. <div className="comment-submit">
  36. <div className="pull-right">
  37. <Button bsStyle="primary" className="fcbtn btn btn-sm btn-primary btn-outline btn-rounded btn-1b">
  38. Comment
  39. </Button>
  40. </div>
  41. <div className="clearfix">
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. );
  47. }
  48. }
  49. CommentForm.propTypes = {
  50. };