Skip to content

Rallly is an open-source scheduling and collaboration tool designed to make organizing events and meetings easier.

🐛 Pass image to participant row (#2295)

Luke Vellad9413bf99a59
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx b/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
index 36e4c6dda..98913d1a9 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row-form.tsx
@@ -23,6 +23,7 @@ export interface ParticipantRowFormProps {
name?: string;
className?: string;
email?: string;
+ image?: string;
isYou?: boolean;
isNew?: boolean;
onCancel?: () => void;
@@ -30,6 +31,7 @@ export interface ParticipantRowFormProps {
const ParticipantRowForm = ({
name,
+ image,
email,
isNew,
className,
@@ -66,6 +68,7 @@ const ParticipantRowForm = ({
name={participantName}
size="md"
email={email}
+ src={image ?? undefined}
/>
) : (
<YouAvatar />
diff --git a/apps/web/src/components/poll/desktop-poll/participant-row.tsx b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
index 318da0275..63d0bff59 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -119,6 +119,7 @@ const ParticipantRow: React.FunctionComponent<ParticipantRowProps> = ({
className={className}
name={participant.name}
email={participant.email}
+ image={participant.image ?? undefined}
isYou={isYou}
onCancel={() => onChangeEditMode?.(false)}
/>