|
@@ -195,12 +195,10 @@ class Comment extends React.PureComponent {
|
|
|
<a href={`#${commentId}`}>
|
|
<a href={`#${commentId}`}>
|
|
|
<FormattedDistanceDate id={commentId} date={comment.createdAt} />
|
|
<FormattedDistanceDate id={commentId} date={comment.createdAt} />
|
|
|
</a>
|
|
</a>
|
|
|
- {isEdited && (
|
|
|
|
|
|
|
+ { isEdited && (
|
|
|
<>
|
|
<>
|
|
|
<span id={editedDateId}> (edited)</span>
|
|
<span id={editedDateId}> (edited)</span>
|
|
|
- <UncontrolledTooltip placement="bottom" fade={false} target={editedDateId}>
|
|
|
|
|
- {editedDateFormatted}
|
|
|
|
|
- </UncontrolledTooltip>
|
|
|
|
|
|
|
+ <UncontrolledTooltip placement="bottom" fade={false} target={editedDateId}>{editedDateFormatted}</UncontrolledTooltip>
|
|
|
</>
|
|
</>
|
|
|
)}
|
|
)}
|
|
|
<span className="ml-2">
|
|
<span className="ml-2">
|
|
@@ -213,11 +211,15 @@ class Comment extends React.PureComponent {
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
{this.checkPermissionToControlComment() && (
|
|
{this.checkPermissionToControlComment() && (
|
|
|
- <CommentControl onClickDeleteBtn={this.deleteBtnClickedHandler} onClickEditBtn={() => this.setState({ isReEdit: true })} />
|
|
|
|
|
- )}
|
|
|
|
|
|
|
+ <CommentControl
|
|
|
|
|
+ onClickDeleteBtn={this.deleteBtnClickedHandler}
|
|
|
|
|
+ onClickEditBtn={() => this.setState({ isReEdit: true })}
|
|
|
|
|
+ />
|
|
|
|
|
+ ) }
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- )}
|
|
|
|
|
|
|
+ )
|
|
|
|
|
+ }
|
|
|
</React.Fragment>
|
|
</React.Fragment>
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|