Skip to content

Commit

Permalink
memberlistFix-1 (RocketChat#282)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yashraj7890 authored Oct 21, 2023
1 parent 9c68954 commit 4cb5c03
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
13 changes: 5 additions & 8 deletions packages/react/src/components/RoomMembers/RoomMemberItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,11 @@ import {
import UserStatus from './UserStatus';

const RoomMemberItem = ({ user }) => (
<Option data-username={user.username} data-userid={user._id}>
<OptionColumn>
<UserStatus status={user.status} />
</OptionColumn>
<OptionContent data-qa={`MemberItem-${user.username}`}>
{user.name} <OptionDescription>({user.username})</OptionDescription>
</OptionContent>
</Option>

<div style={{ width:'100%',paddingBottom:'8px',paddingTop:'8px',display:'flex' }}>
<img src={ `http://localhost:3000/avatar/${user.username}`} alt="avatar" style={{ height:'1.5rem',marginLeft:'0.5rem',}}></img>
<span style={{ marginLeft:'1.2rem',}}>{user.username}</span>
</div>
);

export default RoomMemberItem;
Expand Down
2 changes: 0 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -33907,5 +33907,3 @@ proxy-middleware@latest:
checksum: 80acd0fbf633782996642802c8692bbb80ae5c80a8dff4c501b88250acd5ccd468fbc6398bdce198475a25e3839c91385b81da921274f33ffb5c2d08c3eab400
languageName: node
linkType: hard


0 comments on commit 4cb5c03

Please sign in to comment.