This commit is contained in:
mgabdev
2020-05-14 23:17:31 -04:00
parent 59466ccc08
commit a1977ba450
16 changed files with 103 additions and 62 deletions

View File

@@ -83,6 +83,10 @@ export default
@connect(makeMapStateToProps, mapDispatchToProps)
class Comment extends ImmutablePureComponent {
static contextTypes = {
router: PropTypes.object,
}
static propTypes = {
indent: PropTypes.number,
intl: PropTypes.object.isRequired,
@@ -118,7 +122,7 @@ class Comment extends ImmutablePureComponent {
}
handleOnReply = () => {
this.props.onReply(this.props.status)
this.props.onReply(this.props.status, this.context.router)
}
handleOnFavorite = () => {