mirror of
https://github.com/wassname/talk.git
synced 2026-07-03 12:54:43 +08:00
don't accept/reject when a comment is already accepted/rejected respectively
This commit is contained in:
@@ -74,8 +74,8 @@ const Comment = ({actions = [], comment, ...props}) => {
|
||||
user={comment.user}
|
||||
status={comment.status}
|
||||
active={active}
|
||||
acceptComment={() => props.acceptComment({commentId: comment.id})}
|
||||
rejectComment={() => props.rejectComment({commentId: comment.id})} />;
|
||||
acceptComment={() => comment.status === 'ACCEPTED' ? null : props.acceptComment({commentId: comment.id})}
|
||||
rejectComment={() => comment.status === 'REJECTED' ? null : props.rejectComment({commentId: comment.id})} />;
|
||||
})}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user