feat: moving props spread

This commit is contained in:
Chubby Granny Chaser 2025-03-04 20:00:51 +00:00
parent 8bfd6e5547
commit 69f4ce821f
No known key found for this signature in database

View file

@ -19,14 +19,12 @@ export function Avatar({ size, alt, src, ...props }: AvatarProps) {
<div className="profile-avatar" style={{ width: size, height: size }}>
{src ? (
<img
{...props}
className="profile-avatar__image"
alt={alt}
src={src}
width={size}
height={size}
{...props}
width={size}
height={size}
/>
) : (
<PersonIcon size={size * 0.7} />