v1 review pass: fixed some minor bugs
This commit is contained in:
@@ -8,7 +8,9 @@ interface AvatarProps {
|
||||
size?: number;
|
||||
}
|
||||
|
||||
export function Avatar({ userId, username, hasAvatar, size = 36 }: AvatarProps) {
|
||||
export function Avatar(
|
||||
{ userId, username, hasAvatar, size = 36 }: AvatarProps,
|
||||
) {
|
||||
const [imgFailed, setImgFailed] = useState(false);
|
||||
const sizeStyle = { width: size, height: size };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user