Skip to content

Commit 1cca775

Browse files
committed
message edited style fix
1 parent 8949135 commit 1cca775

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/components/ActionCard/Comment.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class Comment extends React.Component {
3535

3636
edit() {
3737
this.setState({editMode: true})
38-
this.props.onEdit()
38+
this.props.onChange(null,true)
3939
}
4040

4141
delete() {

src/components/Feed/FeedComments.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class FeedComments extends React.Component {
3030
render() {
3131
const {
3232
comments, currentUser, totalComments, onLoadMoreComments, isLoadingComments, hasMoreComments, onAddNewComment,
33-
onNewCommentChange, error, avatarUrl, isAddingComment, allowComments, onSaveMessage, onDeleteMessage
33+
onNewCommentChange, error, avatarUrl, isAddingComment, allowComments, onSaveMessage, onDeleteMessage, onEditMessage
3434
} = this.props
3535
let authorName = currentUser.firstName
3636
if (authorName && currentUser.lastName) {
@@ -77,6 +77,7 @@ class FeedComments extends React.Component {
7777
avatarUrl={ _.get(item, 'author.photoURL', null)}
7878
authorName={item.author ? (item.author.firstName + ' ' + item.author.lastName) : 'Connect user'}
7979
date={moment(item.date).fromNow()}
80+
edited={item.edited}
8081
active={item.unread}
8182
self={item.author && item.author.userId === currentUser.userId}
8283
onChange={this.onSaveMessageChange.bind(this, item.id)}

0 commit comments

Comments
 (0)