diff options
author | Vitaly Takmazov | 2018-06-18 23:34:47 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:52 +0300 |
commit | 3a6ac190800644dba207b0c7b4d65640ca7175c3 (patch) | |
tree | 85c2406748d8852a376a48ff61cd5dabf0319f6c /vnext/src/components/Avatar.js | |
parent | 3aee462b5ca9640c43609b288da16eec5394b382 (diff) |
fix other links
Diffstat (limited to 'vnext/src/components/Avatar.js')
-rw-r--r-- | vnext/src/components/Avatar.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/vnext/src/components/Avatar.js b/vnext/src/components/Avatar.js index 72b5d2d1..c6dc71ec 100644 --- a/vnext/src/components/Avatar.js +++ b/vnext/src/components/Avatar.js @@ -1,11 +1,14 @@ import React from 'react'; +import { Link } from 'react-router-dom'; import { UserType } from './Types'; export default function Avatar(props) { return ( - <div className="msg-avatar"><a href={`/${props.user.uname}/`}> - <img src={`//i.juick.com/a/${props.user.uid}.png`} alt={`${props.user.uname}`} /></a> + <div className="msg-avatar"> + <Link to={{ pathname: `/${props.user.uname}/`}}> + <img src={`//i.juick.com/a/${props.user.uid}.png`} alt={`${props.user.uname}`} /> + </Link> </div> ); } |