import React, { PropTypes, Component } from 'react'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import Actions from '../../actions.js'; import { Button } from 'react-bootstrap'; const Textarea = FRC.Textarea; class CommentEdit extends Component { constructor() { super(); this.submitComment = this.submitComment.bind(this); } submitComment(data) { data = {$set: data}; Actions.call("comments.edit", data, this.props.comment._id, (error, result) => { if (error) { Messages.flash(error.message); } else { this.props.submitCallback(); } }); } render() { return (