diff options
Diffstat (limited to 'vnext/src/components/Message.js')
-rw-r--r-- | vnext/src/components/Message.js | 24 |
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> 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> 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> 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> Comment</span> + <Icon name="ei-comment" size="s" /> + <span className="desktop">Comment</span> </Link> </> )} |