aboutsummaryrefslogtreecommitdiff
path: root/vnext
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-02-04 06:13:34 +0300
committerGravatar Vitaly Takmazov2023-02-04 06:13:34 +0300
commitfa8a741470485c2b3c0afdfe64534024375bd901 (patch)
tree12387fb2ab00a97be6396ecef9592a8ffcec8d0a /vnext
parent6bcf14c9941097a44d1a035761e626db4009d058 (diff)
vnext: do not use Link without `to`
Diffstat (limited to 'vnext')
-rw-r--r--vnext/src/ui/Message.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js
index 3bb59a4a..640512ea 100644
--- a/vnext/src/ui/Message.js
+++ b/vnext/src/ui/Message.js
@@ -119,7 +119,7 @@ export default function Message({ data, isThread = false, onToggleSubscription,
{
data.user && canComment && ((
isThread ? (
- <Link className="msg-button" onClick={() => { onToggleSubscription(data); }}>
+ <a className="msg-button" onClick={() => { onToggleSubscription(data); }}>
{
data.subscribed ? (<>
<Icon name="ei-check" size="s" />
@@ -128,7 +128,7 @@ export default function Message({ data, isThread = false, onToggleSubscription,
<Icon name="ei-eye" size="s" />
<span>Subscribe</span>
</>)}
- </Link>
+ </a>
) : (
<Link to={`/${data.user.uname}/${data.mid}`} className="a-comment msg-button"
state={{ data: data }}>