aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Message.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r--vnext/src/components/Message.js24
1 files changed, 9 insertions, 15 deletions
diff --git a/vnext/src/components/Message.js b/vnext/src/components/Message.js
index 3d063114..c63c5750 100644
--- a/vnext/src/components/Message.js
+++ b/vnext/src/components/Message.js
@@ -41,34 +41,28 @@ function Message({ data, visitor, children, ...rest }) {
<MessageSummary message={data} />
<nav className="l">
{visitor.uid === data.user.uid ? (
- <a href={`/${data.user.uname}/${data.mid}`} className="a-like msg-button">
- <span className="msg-button-icon">
- <Icon name="ei-heart" size="s" />
- </span>
- <span>&nbsp;Recommend</span>
- </a>
+ <Link to={{ pathname: `/${data.user.uname}/${data.mid}`}} className="a-like msg-button">
+ <Icon name="ei-heart" size="s" />
+ <span className="desktop">Recommend</span>
+ </Link>
) : visitor.uid > 0 ? (
<Link to={{ pathname: '/post', search: `?body=!+%23${data.mid}` }} className="a-like msg-button">
- <span className="msg-button-icon">
- <Icon name="ei-heart" size="s" />
- </span>
- <span>&nbsp;Recommend</span>
+ <Icon name="ei-heart" size="s" />
+ <span className="desktop">Recommend</span>
</Link>
) : (
<a href="/login" className="a-login msg-button">
<span className="msg-button-icon">
<Icon name="ei-heart" size="s" />
</span>
- <span>&nbsp;Recommend</span>
+ <span className="desktop">Recommend</span>
</a>
)}
{!data.ReadOnly | (visitor.uid === data.user.uid) && (
<>
<Link to={{ pathname: `/${data.user.uname}/${data.mid}`, state: { msg: data } }} className="a-comment msg-button">
- <span className="msg-button-icon">
- <Icon name="ei-comment" size="s" />
- </span>
- <span>&nbsp;Comment</span>
+ <Icon name="ei-comment" size="s" />
+ <span className="desktop">Comment</span>
</Link>
</>
)}