CommentForm.js 2.0 KB

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