aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/UserInfo.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/UserInfo.js')
-rw-r--r--vnext/src/ui/UserInfo.js23
1 files changed, 11 insertions, 12 deletions
diff --git a/vnext/src/ui/UserInfo.js b/vnext/src/ui/UserInfo.js
index f71dfcdc..ac9c6c69 100644
--- a/vnext/src/ui/UserInfo.js
+++ b/vnext/src/ui/UserInfo.js
@@ -1,5 +1,4 @@
import { memo, useState, useEffect, useRef } from 'react'
-import { Link } from 'react-router-dom'
import { info, fetchUserUri } from '../api'
@@ -42,18 +41,18 @@ export default function UserInfo({ uname, onUpdate, children }) {
{
user.uid > 0 &&
<>
- <Link to={`/pm/${user.uname}`}>
+ <a href={`/pm/${user.uname}`}>
<Icon name="ei-envelope" size="s" />
<span className="desktop">PM</span>
- </Link>
- <Link to={`/${user.uname}/?show=recomm`} rel="nofollow">
+ </a>
+ <a href={`/${user.uname}/?show=recomm`} rel="nofollow">
<Icon name="ei-heart" size="s" />
<span className="desktop">Recommendations</span>
- </Link>
- <Link to={`/${user.uname}/?media=1`} rel="nofollow">
+ </a>
+ <a href={`/${user.uname}/?media=1`} rel="nofollow">
<Icon name="ei-camera" size="s" />
<span className="desktop">Photos</span>
- </Link>
+ </a>
</>
}
</div>
@@ -70,9 +69,9 @@ function Summary({ user }) {
const readUrl = `/${user.uname}/friends`
const readersUrl = `/${user.uname}/readers`
const blUrl = `/${user.uname}/bl`
- let read = user.read && <Link key={readUrl} to={readUrl}>I read: {user.read.length}</Link>
- let readers = user.readers && <Link key={readersUrl} to={readersUrl}>My readers: {user.readers.length}</Link>
- let mybl = user.statsMyBL && <Link key={blUrl} to={blUrl}>My blacklist: {user.statsMyBL}</Link>
+ let read = user.read && <a key={readUrl} href={readUrl}>I read: {user.read.length}</a>
+ let readers = user.readers && <a key={readersUrl} href={readersUrl}>My readers: {user.readers.length}</a>
+ let mybl = user.statsMyBL && <a key={blUrl} href={blUrl}>My blacklist: {user.statsMyBL}</a>
let presentItems = [read, readers, mybl].filter(Boolean)
return (
<div className="msg-summary">
@@ -119,9 +118,9 @@ export function UserLink(props) {
}, [props.user])
return (
user.uid ?
- <Link key={user.uid} to={`/${user.uname}/`} className="info-avatar">
+ <a key={user.uid} href={`/${user.uname}/`} className="info-avatar">
<img src={user.avatar} />{user.uname}
- </Link>
+ </a>
: <a href={user.uri} className="info-avatar">
<img src={user.avatar || defaultAvatar} />{user.uname}
</a>