mirror of
https://github.com/vale981/Vulcan
synced 2025-03-08 19:11:38 -05:00
34 lines
No EOL
816 B
JavaScript
34 lines
No EOL
816 B
JavaScript
import React, { PropTypes, Component } from 'react';
|
|
import NovaForm from "meteor/nova:forms";
|
|
|
|
class CommentsEdit extends Component {
|
|
|
|
render() {
|
|
return (
|
|
<div className="comments-edit-form">
|
|
<NovaForm
|
|
collection={Comments}
|
|
document={this.props.comment}
|
|
currentUser={this.context.currentUser}
|
|
methodName="comments.edit"
|
|
successCallback={this.props.successCallback}
|
|
layout="elementOnly"
|
|
cancelCallback={this.props.cancelCallback}
|
|
/>
|
|
</div>
|
|
)
|
|
}
|
|
|
|
}
|
|
|
|
CommentsEdit.propTypes = {
|
|
comment: React.PropTypes.object.isRequired,
|
|
successCallback: React.PropTypes.func,
|
|
cancelCallback: React.PropTypes.func
|
|
}
|
|
|
|
CommentsEdit.contextTypes = {
|
|
currentUser: React.PropTypes.object
|
|
}
|
|
|
|
module.exports = CommentsEdit; |