Fixed status onClick when isNotification

• Updated:
- Now, you will be able to click on any StatusActionBarItem to interact with a status from the notifiation feed without it pushing you to the status page onClick
This commit is contained in:
mgabdev 2020-05-15 23:50:31 -04:00
parent 69de9eab75
commit 9d9fcbcb36

View File

@ -248,8 +248,6 @@ class Status extends ImmutablePureComponent {
} }
handleClick = () => { handleClick = () => {
// : todo : if clicked on isNotification statusactionbaritem do not go to new page
if (this.props.onClick) { if (this.props.onClick) {
this.props.onClick() this.props.onClick()
return return
@ -482,7 +480,7 @@ class Status extends ImmutablePureComponent {
data-featured={isFeatured ? 'true' : null} data-featured={isFeatured ? 'true' : null}
aria-label={textForScreenReader(intl, status, rebloggedByText)} aria-label={textForScreenReader(intl, status, rebloggedByText)}
ref={this.handleRef} ref={this.handleRef}
onClick={isChild ? this.handleClick : undefined} onClick={isChild && !isNotification ? this.handleClick : undefined}
> >
<div className={innerContainerClasses}> <div className={innerContainerClasses}>