refactor: avatar size

This commit is contained in:
Tristan Yang
2023-02-13 07:35:07 +08:00
parent 84423c009d
commit e49a1ba333
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ const Avatar: FC<Props> = ({
setAvatarSrc("");
};
if (avatarSrc) {
return <img src={avatarSrc} onError={handleError} {...rest} />;
return <img width={width} height={height} src={avatarSrc} onError={handleError} {...rest} />;
}
return (
<div