diff options
author | Vitaly Takmazov | 2019-02-26 16:22:13 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:54 +0300 |
commit | 695672f750ec9702c75a5020c90acba7b036380d (patch) | |
tree | 0cc4e5f386c531e485a232922ec61c8603f8274b /vnext/src/components/Thread.js | |
parent | f507e0639cb29ccf74926177e7230255f07648fb (diff) |
UserLink component
Diffstat (limited to 'vnext/src/components/Thread.js')
-rw-r--r-- | vnext/src/components/Thread.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/components/Thread.js b/vnext/src/components/Thread.js index cf7291a8..7a1b48f3 100644 --- a/vnext/src/components/Thread.js +++ b/vnext/src/components/Thread.js @@ -11,6 +11,7 @@ import MessageInput from './MessageInput'; import Spinner from './Spinner'; import Avatar from './Avatar'; import Button from './Button'; +import { UserLink } from './UserInfo'; import { format } from '../utils/embed'; @@ -169,7 +170,7 @@ function Recommendations({ forMessage, ...rest }) { <div className="msg-recomms">{'Recommended by '} { recommendations.map(it => ( - <Link key={it} to={`/${it}/`}>{it}</Link> + <UserLink user={it} /> )).reduce((prev, curr) => [prev, ', ', curr]) } { |