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';
4
4
import classNames from 'classnames' ;
5
5
// @ts -ignore
6
6
import styles from './NoticeList.less' ;
7
+ import Icon from '../Icon' ;
7
8
8
9
export type NoticeIconTabProps = {
9
10
count ?: number ;
@@ -55,7 +56,7 @@ const NoticeList: React.FC<NoticeIconTabProps> = ({
55
56
// eslint-disable-next-line no-nested-ternary
56
57
const leftIcon = item . avatar ? (
57
58
typeof item . avatar === 'string' ? (
58
- < Avatar className = { styles . avatar } src = { item . avatar } />
59
+ < Avatar className = { styles . avatar } src = { item . avatar } icon = { < Icon type = "user" /> } />
59
60
) : (
60
61
< span className = { styles . iconElement } > { item . avatar } </ span >
61
62
)
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ import { outLogin } from '@/services/ant-design-pro/api';
10
10
import { User , Token } from '@/utils/Ballcat' ;
11
11
import I18n from '@/utils/I18nUtils' ;
12
12
import UrlUtils from '@/utils/UrlUtils' ;
13
+ import Icon from '../Icon' ;
13
14
14
15
export type GlobalHeaderRightProps = {
15
16
exitConfirm ?: boolean ;
@@ -101,6 +102,7 @@ const AvatarDropdown: React.FC<GlobalHeaderRightProps> = ({ exitConfirm }) => {
101
102
< span className = { `${ styles . action } ${ styles . account } ` } >
102
103
< Avatar
103
104
size = "small"
105
+ icon = { < Icon type = "user" /> }
104
106
className = { styles . avatar }
105
107
src = { user ?. info ?. avatar ? UrlUtils . resolveImage ( user . info . avatar ) : undefined }
106
108
alt = "avatar"
You can’t perform that action at this time.
0 commit comments