fix(Avatar): Correctly handle the attribute of the user avatar button's tag.

This commit is contained in:
haitaoo 2023-07-10 11:20:42 +08:00
parent 3ea5575136
commit f6f32db7ec
2 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,6 @@ const Index: FC<IProps> = ({
<>
{/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role,jsx-a11y/control-has-associated-label */}
<img
role="button"
src={url || DefaultAvatar}
width={size}
height={size}

View File

@ -65,6 +65,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
variant="success"
id="dropdown-basic"
as="a"
role="button"
className="no-toggle pointer">
<Avatar
size="36px"