refactor: clean up code in various components; streamline material properties and improve state management

This commit is contained in:
2025-03-29 18:35:34 +05:30
parent df571e18fb
commit 98eb403b4a
5 changed files with 11 additions and 19 deletions

View File

@@ -28,15 +28,13 @@ const Header: React.FC = () => {
<div className="other-guest">+{guestUsers.length - 3}</div>
)}
{guestUsers.slice(0, 3).map((user, index) => (
<>
<div
key={index}
className="user-profile"
style={{ background: getAvatarColor(index) }}
>
{user.userName[0]}
</div>
</>
<div
key={index}
className="user-profile"
style={{ background: getAvatarColor(index) }}
>
{user.userName[0]}
</div>
))}
</div>
<div className="user-profile-container">