From d7ea88c36755855b1bcb32f4751b51bb72a7062e Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Mon, 18 Sep 2017 14:10:44 -0300 Subject: [PATCH] matching master --- .../coral-admin/src/components/CommentBox.js | 35 ------------------- 1 file changed, 35 deletions(-) delete mode 100644 client/coral-admin/src/components/CommentBox.js diff --git a/client/coral-admin/src/components/CommentBox.js b/client/coral-admin/src/components/CommentBox.js deleted file mode 100644 index a5597bfbe..000000000 --- a/client/coral-admin/src/components/CommentBox.js +++ /dev/null @@ -1,35 +0,0 @@ - -import React from 'react'; -import styles from './CommentBox.css'; -import {Button} from 'react-mdl'; - -// Renders a comment box for creating a new comment -export default class CommentBox extends React.Component { - constructor (props) { - super(props); - this.state = {name: '', body: ''}; - this.onSubmit = this.onSubmit.bind(this); - } - - onSubmit () { - const {name, body} = this.state; - this.props.onSubmit({name, body}); - this.setState({body: '', name: ''}); - } - - render (props, {name, body}) { - return ( -
-
- - -
-
-