Skip to content

Commit

Permalink
RecIM: display team participant's Hall when present
Browse files Browse the repository at this point in the history
  • Loading branch information
EjPlatzer committed Sep 25, 2024
1 parent ae0dbc5 commit b9ec56f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/services/recim/participant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export type Participant = CustomParticipant & {
Notification: ParticipantNotification[];
IsAdmin: boolean;
IsCustom: boolean;
Hall?: string;
};

type BasicInfo = {
Expand Down
5 changes: 4 additions & 1 deletion src/views/RecIM/components/List/Listing/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -451,6 +451,9 @@ const ParticipantListing = ({
};

const participantDetails = () => {
const secondaryText = participant.Hall
? `${participant.Role} | ${participant.Hall}`
: participant.Role;
return (
<>
<ListItemAvatar>
Expand All @@ -462,7 +465,7 @@ const ParticipantListing = ({
/>
</ListItemAvatar>

<ListItemText primary={fullName} secondary={participant.Role} />
<ListItemText primary={fullName} secondary={secondaryText} />
</>
);
};
Expand Down

0 comments on commit b9ec56f

Please sign in to comment.