diff --git a/src/components/NoticeIcon/NoticeList.tsx b/src/components/NoticeIcon/NoticeList.tsx index dbe66d0..f23c3c1 100644 --- a/src/components/NoticeIcon/NoticeList.tsx +++ b/src/components/NoticeIcon/NoticeList.tsx @@ -4,6 +4,7 @@ import React from 'react'; import classNames from 'classnames'; // @ts-ignore import styles from './NoticeList.less'; +import Icon from '../Icon'; export type NoticeIconTabProps = { count?: number; @@ -55,7 +56,7 @@ const NoticeList: React.FC = ({ // eslint-disable-next-line no-nested-ternary const leftIcon = item.avatar ? ( typeof item.avatar === 'string' ? ( - + } /> ) : ( {item.avatar} ) diff --git a/src/components/RightContent/AvatarDropdown.tsx b/src/components/RightContent/AvatarDropdown.tsx index a4e5b8e..076ac39 100644 --- a/src/components/RightContent/AvatarDropdown.tsx +++ b/src/components/RightContent/AvatarDropdown.tsx @@ -10,6 +10,7 @@ import { outLogin } from '@/services/ant-design-pro/api'; import { User, Token } from '@/utils/Ballcat'; import I18n from '@/utils/I18nUtils'; import UrlUtils from '@/utils/UrlUtils'; +import Icon from '../Icon'; export type GlobalHeaderRightProps = { exitConfirm?: boolean; @@ -101,6 +102,7 @@ const AvatarDropdown: React.FC = ({ exitConfirm }) => { } className={styles.avatar} src={user?.info?.avatar ? UrlUtils.resolveImage(user.info.avatar) : undefined} alt="avatar"