Skip to content

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

💄 Apply color to table cell based on vote type

Luke Vella59d98447d41d
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 63b4e00b9..79469dcf3 100644
--- a/apps/web/src/components/poll/desktop-poll/participant-row.tsx
+++ b/apps/web/src/components/poll/desktop-poll/participant-row.tsx
@@ -48,7 +48,12 @@ export const ParticipantRowView: React.FunctionComponent<{
<td key={i} className={clsx("h-12 p-1")}>
<div
className={clsx(
- "flex h-full w-full items-center justify-center rounded border bg-gray-50",
+ "flex h-full items-center justify-center rounded-md border",
+ {
+ "border-green-200 bg-green-50": vote === "yes",
+ "border-amber-100 bg-amber-50": vote === "ifNeedBe",
+ "bg-gray-50": vote === "no",
+ },
)}
>
<VoteIcon type={vote} />