Skip to content

Commit

Permalink
fix(web): 修复私信列表没有头像的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Nov 16, 2020
1 parent e530735 commit dbe303c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/web/routes/Main/Content/Personal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { getUserName } from '@shared/utils/data-helper';
import { useTranslation } from '@shared/i18n';
import { useHistory } from 'react-router';
import _orderBy from 'lodash/orderBy';
import { UserAvatar } from '@web/components/UserAvatar';

/**
* 个人面板
Expand Down Expand Up @@ -100,7 +101,7 @@ export const Personal: React.FC = TMemo(() => {
return (
<SidebarItem
key={converse.uuid}
icon={converse.icon}
icon={<UserAvatar uuid={converse.uuid} />}
name={converse.name}
to={`/main/personal/converse/${converse.uuid}`}
badge={converse.unread}
Expand Down

0 comments on commit dbe303c

Please sign in to comment.