mirror of
https://github.com/wassname/talk.git
synced 2026-07-08 22:08:07 +08:00
22 lines
551 B
JavaScript
22 lines
551 B
JavaScript
import React from 'react';
|
|
import {withSetCommentStatus} from 'plugin-api/beta/client/hocs';
|
|
import RejectCommentAction from '../components/RejectCommentAction';
|
|
|
|
class RejectCommentActionContainer extends React.Component {
|
|
|
|
rejectComment = () => {
|
|
const {setCommentStatus, comment} = this.props;
|
|
|
|
setCommentStatus({
|
|
commentId: comment.id,
|
|
status: 'REJECTED'
|
|
});
|
|
}
|
|
|
|
render() {
|
|
return <RejectCommentAction rejectComment={this.rejectComment}/>;
|
|
}
|
|
}
|
|
|
|
export default withSetCommentStatus(RejectCommentActionContainer);
|