Merge pull request #434 from answerdev/feat/1.1.1/ui

fix(Avatar): Correctly handle the  attribute of the user avatar butto…
This commit is contained in:
haitao.jarvis 2023-07-10 11:25:01 +08:00 committed by GitHub
commit 30e11c7a61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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"