don't show delete button if comment is already deleted

This commit is contained in:
igoradamenko
2018-03-26 14:30:26 +03:00
parent 2c355e009d
commit ee021efaf6
+5 -1
View File
@@ -303,7 +303,11 @@ export default class Comment extends Component {
)
}
<span className="comment__action" onClick={this.onDeleteClick}>delete</span>
{
!deleted && (
<span className="comment__action" onClick={this.onDeleteClick}>delete</span>
)
}
</span>
)
}