mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-08-23 17:47:24 +00:00
Fix redirection
This commit is contained in:
parent
56852955e4
commit
076df9c47f
1 changed files with 7 additions and 1 deletions
|
@ -19,6 +19,7 @@ import LbcMessage from 'component/common/lbc-message';
|
||||||
import UriIndicator from 'component/uriIndicator';
|
import UriIndicator from 'component/uriIndicator';
|
||||||
import CommentReactions from 'component/commentReactions';
|
import CommentReactions from 'component/commentReactions';
|
||||||
import CommentCreate from 'component/commentCreate';
|
import CommentCreate from 'component/commentCreate';
|
||||||
|
import { NavLink } from 'react-router-dom';
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
notification: WebNotification,
|
notification: WebNotification,
|
||||||
|
@ -144,6 +145,9 @@ export default function Notification(props: Props) {
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
notificationLink += `?${urlParams.toString()}`;
|
notificationLink += `?${urlParams.toString()}`;
|
||||||
|
const navLinkProps = {
|
||||||
|
to: notificationLink,
|
||||||
|
};
|
||||||
|
|
||||||
function handleNotificationClick() {
|
function handleNotificationClick() {
|
||||||
if (!is_read) {
|
if (!is_read) {
|
||||||
|
@ -172,9 +176,11 @@ export default function Notification(props: Props) {
|
||||||
)
|
)
|
||||||
: notificationLink
|
: notificationLink
|
||||||
? (props: { children: any }) => (
|
? (props: { children: any }) => (
|
||||||
<a href={notificationLink} className="menu__link--notification" onClick={handleNotificationClick}>
|
<NavLink {...navLinkProps}>
|
||||||
|
<a className="menu__link--notification" onClick={handleNotificationClick}>
|
||||||
{props.children}
|
{props.children}
|
||||||
</a>
|
</a>
|
||||||
|
</NavLink>
|
||||||
)
|
)
|
||||||
: (props: { children: any }) => (
|
: (props: { children: any }) => (
|
||||||
<span
|
<span
|
||||||
|
|
Loading…
Add table
Reference in a new issue