UPDATE/FEAT: Proper handling of profile pictures where a fallback to the default pfp is used;

REFACTOR: Remove unnecessary props from users on `ResultsPage`;
REFACTOR: General formatting
This commit is contained in:
Chris-1010
2025-03-02 14:52:17 +00:00
parent 2fceb6c19d
commit 37122e1cea
7 changed files with 610 additions and 704 deletions

View File

@@ -84,7 +84,11 @@ const UserListItem: React.FC<UserListItemProps> = ({ title, username, isLive, on
onClick={onItemClick}
>
<img
src="/images/monkey.png"
src={`/user/${username}/profile_picture`}
onError={(e) => {
e.currentTarget.src = "/images/pfps/default.png";
e.currentTarget.onerror = null;
}}
alt={`user ${username}`}
className="rounded-xl border-[0.15em] border-[var(--bg-color)] cursor-pointer"
/>