-
{props.user.name}
+
{props.comment.user.name}
- {timeago().format(props.created_at || (Date.now() - props.index * 60 * 1000), lang.getLocale().replace('-', '_'))}
+ {timeago().format(props.comment.created_at || (Date.now() - props.index * 60 * 1000), lang.getLocale().replace('-', '_'))}
{props.flagged ?
{lang.t('comment.flagged')}
: null}
@@ -33,14 +33,14 @@ const Comment = ({actions = [], ...props}) => {
{actions.map((action, i) =>
props.acceptComment({commentId: props.id})}
- rejectComment={() => props.rejectComment({commentId: props.id})}
- showBanUserDialog={() => props.showBanUserDialog(props.user, props.id)}
+ user={props.comment.user}
+ acceptComment={() => props.acceptComment({commentId: props.comment.id})}
+ rejectComment={() => props.rejectComment({commentId: props.comment.id})}
+ showBanUserDialog={() => props.showBanUserDialog(props.comment.user, props.comment.id)}
/>
)}
- {props.user.banned === 'banned' ?
+ {props.comment.user.banned === 'banned' ?