Skip to content

Commit

Permalink
Show registration state in participant list
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Dec 6, 2023
1 parent b2c50e6 commit 52f2827
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Components/Tailwind/Table.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import {ChangeEvent, useState, useMemo, useRef} from 'react';
import {
ArrowSmallLeftIcon,
BanknotesIcon,
CheckCircleIcon,
ExclamationCircleIcon,
MagnifyingGlassIcon,
UserGroupIcon,
XMarkIcon,
Expand Down Expand Up @@ -169,7 +171,11 @@ function Row({fullName, checkedIn, state, onClick, isEven}: RowProps) {
>
{fullName}
</Typography>
{checkedIn && <CheckCircleIcon className="h-6 w-6 text-green-500" />}
<div className="flex">
{state === 'pending' && <ExclamationCircleIcon className="h-6 w-6 text-yellow-500" />}
{state === 'unpaid' && <BanknotesIcon className="h-6 w-6 text-yellow-500" />}
{checkedIn && <CheckCircleIcon className="h-6 w-6 text-green-500" />}
</div>
</div>
</td>
</tr>
Expand Down

0 comments on commit 52f2827

Please sign in to comment.