mirror of
https://github.com/lukevella/rallly.git
synced 2025-08-03 08:28:35 +02:00
💄 Apply color to table cell based on vote type
This commit is contained in:
parent
45321a5645
commit
59d98447d4
1 changed files with 6 additions and 1 deletions
|
@ -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} />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue