aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Message.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2022-10-28 17:13:55 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:58 +0300
commitafd233dd69aae355256578130c9f545bf749f2b1 (patch)
tree6420fcf135a32ba57e048e2c0b493901ad742100 /vnext/src/ui/Message.js
parent617f6c7a668af8139377b12079554e6e21e9a637 (diff)
Fix loading thread state
Diffstat (limited to 'vnext/src/ui/Message.js')
-rw-r--r--vnext/src/ui/Message.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js
index f8d3dc51..dd6fc0ce 100644
--- a/vnext/src/ui/Message.js
+++ b/vnext/src/ui/Message.js
@@ -51,7 +51,7 @@ export default function Message({ visitor, data, children }) {
data.user &&
<Avatar user={data.user}>
<div className="msg-ts">
- <Link to={`/${data.user.uname}/${data.mid}`}>
+ <Link to={`/${data.user.uname}/${data.mid}`} state={{ data: data }}>
<time dateTime={data.timestamp}
title={moment.utc(data.timestamp).local().format('lll')}>
{moment.utc(data.timestamp).fromNow()}
@@ -92,7 +92,8 @@ export default function Message({ visitor, data, children }) {
<div className="embedContainer" ref={embedRef} />
<nav className="l">
{data.user && visitor.uid === data.user.uid ? (
- <Link to={`/${data.user.uname}/${data.mid}`} className="a-like msg-button">
+ <Link to={`/${data.user.uname}/${data.mid}`} className="a-like msg-button"
+ state={{ data: data }}>
<Icon name="ei-heart" size="s" />
<span>{likesSummary}</span>
</Link>
@@ -108,7 +109,8 @@ export default function Message({ visitor, data, children }) {
</Link>
)}
{data.user && canComment && (
- <Link to={`/${data.user.uname}/${data.mid}`} className="a-comment msg-button">
+ <Link to={`/${data.user.uname}/${data.mid}`} className="a-comment msg-button"
+ state={{ data: data }}>
<Icon name="ei-comment" size="s" />
<span>{commentsSummary}</span>
</Link>