File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import React from 'react';
44import classNames from 'classnames' ;
55// @ts -ignore
66import styles from './NoticeList.less' ;
7+ import Icon from '../Icon' ;
78
89export type NoticeIconTabProps = {
910 count ?: number ;
@@ -55,7 +56,7 @@ const NoticeList: React.FC<NoticeIconTabProps> = ({
5556 // eslint-disable-next-line no-nested-ternary
5657 const leftIcon = item . avatar ? (
5758 typeof item . avatar === 'string' ? (
58- < Avatar className = { styles . avatar } src = { item . avatar } />
59+ < Avatar className = { styles . avatar } src = { item . avatar } icon = { < Icon type = "user" /> } />
5960 ) : (
6061 < span className = { styles . iconElement } > { item . avatar } </ span >
6162 )
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { outLogin } from '@/services/ant-design-pro/api';
1010import { User , Token } from '@/utils/Ballcat' ;
1111import I18n from '@/utils/I18nUtils' ;
1212import UrlUtils from '@/utils/UrlUtils' ;
13+ import Icon from '../Icon' ;
1314
1415export type GlobalHeaderRightProps = {
1516 exitConfirm ?: boolean ;
@@ -101,6 +102,7 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ exitConfirm }) => {
101102 < span className = { `${ styles . action } ${ styles . account } ` } >
102103 < Avatar
103104 size = "small"
105+ icon = { < Icon type = "user" /> }
104106 className = { styles . avatar }
105107 src = { user ?. info ?. avatar ? UrlUtils . resolveImage ( user . info . avatar ) : undefined }
106108 alt = "avatar"
You can’t perform that action at this time.
0 commit comments