aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Avatar.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-08-23 15:44:33 +0300
committerGravatar Vitaly Takmazov2023-08-23 15:44:33 +0300
commitf8ac2f39dbce6c523a61971da804bccf28ecae8a (patch)
tree9a3d2feb8dffec004ac9ef2853ab568113664c49 /vnext/src/ui/Avatar.js
parente0225bc87f36161090e1954cefd6611e0f534a8a (diff)
Dynamic feeds WIPx
Diffstat (limited to 'vnext/src/ui/Avatar.js')
-rw-r--r--vnext/src/ui/Avatar.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/vnext/src/ui/Avatar.js b/vnext/src/ui/Avatar.js
index 1a8db0c3..20e4e133 100644
--- a/vnext/src/ui/Avatar.js
+++ b/vnext/src/ui/Avatar.js
@@ -1,5 +1,4 @@
import { memo } from 'react'
-import { Link } from 'react-router-dom'
import Icon from './Icon'
@@ -21,19 +20,19 @@ function Avatar({ user, style, link, children }) {
<div className="msg-avatar">
{
user.uname ?
- <Link to={{ pathname: link || `/${user.uname}/` }}>
+ <a href={ link || `/${user.uname}/` }>
{user.avatar ?
<img src={user.avatar} alt={`${user.uname}`} />
: <Icon name="ei-spinner" size="m" />}
- </Link>
+ </a>
: <Icon name="ei-spinner" size="m" />
}
</div>
<div style={{ display: 'flex', flexDirection: 'column', justifyContent: 'center' }}>
<span>
- <Link to={{ pathname: link || `/${user.uname}/` }}>
+ <a href={ link || `/${user.uname}/` }>
<span>{user.uname}</span>
- </Link>
+ </a>
</span>
{children}
</div>