1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-25 04:46:40 +07:00

added user profile popup

This commit is contained in:
Fedor Katurov 2021-09-22 17:54:51 +07:00
parent 43450dff54
commit 1242c04587
10 changed files with 162 additions and 57 deletions

View file

@ -5,7 +5,7 @@ import { INode } from '~/redux/types';
import { PRESETS, URLS } from '~/constants/urls';
import { RouteComponentProps, withRouter } from 'react-router';
import { getURL, stringToColour } from '~/utils/dom';
import { CommentAvatar } from '~/components/comment/CommentAvatar';
import { Avatar } from '~/components/common/Avatar';
type IProps = RouteComponentProps & {
item: Partial<INode>;
@ -69,7 +69,7 @@ const NodeRelatedItemUnconnected: FC<IProps> = memo(({ item, history }) => {
onClick={onClick}
ref={ref}
>
<CommentAvatar
<Avatar
username={item.title}
url={item.thumbnail}
className={classNames(styles.thumb, { [styles.is_loaded]: is_loaded })}