fix: pass user/avatarColor to Avatar in profile popout and modal
Profile panels were rendering avatars without the user's chosen avatarColor because they passed userId but omitted the user prop.
This commit is contained in:
@@ -261,6 +261,7 @@ export function UserProfileModal() {
|
||||
size={96}
|
||||
status={user.status as 'online' | 'idle' | 'dnd' | 'offline' | null}
|
||||
userId={user.homeUserId ?? user.id}
|
||||
user={user}
|
||||
ring={{ width: 4, color: 'var(--color-surface-elevated, #1e1e2a)' }}
|
||||
className="mt-[-52px] mb-2"
|
||||
/>
|
||||
@@ -373,6 +374,7 @@ export function UserProfileModal() {
|
||||
size={40}
|
||||
status={friend.status as 'online' | 'idle' | 'dnd' | 'offline' | null}
|
||||
userId={friend.homeUserId ?? friend.id}
|
||||
avatarColor={friend.avatarColor}
|
||||
/>
|
||||
<div className="min-w-0">
|
||||
<div className="text-[13px] font-medium text-txt-primary truncate">
|
||||
|
||||
@@ -108,6 +108,7 @@ export function UserProfilePopout({ user, onClose, position }: UserProfilePopout
|
||||
size={80}
|
||||
status={user.status as 'online' | 'idle' | 'dnd' | 'offline' | null}
|
||||
userId={user.homeUserId ?? user.id}
|
||||
user={user}
|
||||
ring={{ width: 4, color: 'rgba(20,20,26,0.85)' }}
|
||||
className="mt-[-44px] mb-3"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user