- {props.comment.user.name}
+ {comment.user.name}
- {timeago().format(props.comment.created_at || (Date.now() - props.index * 60 * 1000), lang.getLocale().replace('-', '_'))}
+ {timeago().format(comment.created_at || (Date.now() - props.index * 60 * 1000), lang.getLocale().replace('-', '_'))}
- props.showBanUserDialog(props.comment.user, props.comment.id, props.comment.status !== 'REJECTED')} />
+ props.showBanUserDialog(comment.user, comment.id, comment.status !== 'REJECTED')} />
- {props.comment.user.status === 'banned' ?
+ {comment.user.status === 'banned' ?
{lang.t('comment.banned_user')}
@@ -43,16 +45,16 @@ const Comment = ({actions = [], ...props}) => {
: null}
- Story: {props.comment.asset.title}
+ Story: {comment.asset.title}
{!props.currentAsset && (
- Moderate →
+ Moderate →
)}
+ textToHighlight={comment.body} />
{links ?
Contains Link : null}
@@ -60,16 +62,16 @@ const Comment = ({actions = [], ...props}) => {
{actions.map((action, i) =>
props.acceptComment({commentId: props.comment.id})}
- rejectComment={() => props.rejectComment({commentId: props.comment.id})}
+ user={comment.user}
+ acceptComment={() => props.acceptComment({commentId: comment.id})}
+ rejectComment={() => props.rejectComment({commentId: comment.id})}
/>
)}