refactor fetched users into single array and replace Image tag with img

This commit is contained in:
Joao Correia
2025-01-31 10:37:14 +00:00
parent f89b42c41c
commit 9de4cba8e8
9 changed files with 88 additions and 111 deletions

View File

@@ -12,12 +12,12 @@ export default function UserWithProfilePic({ prefix, name, profileImage, textSiz
return (
<div className="flex items-center space-x-2">
<p className={textClassName}>{prefix} {name}</p>
<Image
<img
src={profileImage ? profileImage : "/defaultAvatar.png"}
alt={name}
width={24}
height={24}
className="rounded-full h-auto"
className="rounded-full h-auto border-[1px] border-gray-400 border-opacity-50"
/>
</div>
);