This reverts commit 268130a913
.
This commit is contained in:
parent
268130a913
commit
4d849a4821
1 changed files with 4 additions and 14 deletions
|
@ -21,7 +21,6 @@ import UriIndicator from 'component/uriIndicator';
|
|||
import { generateNotificationTitle } from '../notification/helpers/title';
|
||||
import { generateNotificationText } from '../notification/helpers/text';
|
||||
import { parseURI } from 'util/lbryURI';
|
||||
import { NavLink } from 'react-router-dom';
|
||||
|
||||
type Props = {
|
||||
notifications: Array<Notification>,
|
||||
|
@ -116,15 +115,6 @@ export default function NotificationHeaderButton(props: Props) {
|
|||
push(notificationLink);
|
||||
}
|
||||
|
||||
function getWebUri(notification) {
|
||||
const { notification_parameters } = notification;
|
||||
let notificationLink = formatLbryUrlForWeb(notification_parameters.device.target);
|
||||
if (notification_parameters.dynamic.hash) {
|
||||
notificationLink += '?lc=' + notification_parameters.dynamic.hash + '&view=discussion';
|
||||
}
|
||||
return notificationLink;
|
||||
}
|
||||
|
||||
function menuEntry(notification) {
|
||||
const { id, active_at, notification_rule, notification_parameters, is_read, type } = notification;
|
||||
|
||||
|
@ -173,7 +163,7 @@ export default function NotificationHeaderButton(props: Props) {
|
|||
}
|
||||
|
||||
return (
|
||||
<NavLink onClick={() => handleNotificationClick(notification)} key={id} to={getWebUri(notification)}>
|
||||
<a onClick={() => handleNotificationClick(notification)} key={id}>
|
||||
<div
|
||||
className={is_read ? 'menu__list--notification' : 'menu__list--notification menu__list--notification-unread'}
|
||||
key={id}
|
||||
|
@ -197,7 +187,7 @@ export default function NotificationHeaderButton(props: Props) {
|
|||
<Icon icon={ICONS.DELETE} sectionIcon />
|
||||
</div>
|
||||
</div>
|
||||
</NavLink>
|
||||
</a>
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -228,9 +218,9 @@ export default function NotificationHeaderButton(props: Props) {
|
|||
)}
|
||||
</div>
|
||||
|
||||
<NavLink onClick={handleMenuClick} to={`/$/${PAGES.NOTIFICATIONS}`}>
|
||||
<a onClick={handleMenuClick}>
|
||||
<div className="menu__list--notifications-more">{__('View all')}</div>
|
||||
</NavLink>
|
||||
</a>
|
||||
</MuiMenu>
|
||||
</ClickAwayListener>
|
||||
</>
|
||||
|
|
Loading…
Reference in a new issue