Skip to content

Commit

Permalink
Merge pull request #121 from codersforcauses/issue-120-Fix_View_RSVPs…
Browse files Browse the repository at this point in the history
…_modal

Fix RSVP modal table headers and added phone number
  • Loading branch information
K-Straiton authored Nov 23, 2024
2 parents 01b8f57 + 3c1bba1 commit ecd6f57
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions client/src/components/main/RsvpListModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,17 @@ export default function RsvpListModal({ eventId }: RsvpListModalProps) {
<TableHeader>
<TableRow>
<TableHead className="border-b border-r border-[#7D916F] text-black">
Username
First Name
</TableHead>
<TableHead className="border-b border-r border-[#7D916F] text-black">
Last Name
</TableHead>
<TableHead className="border-b border-r border-[#7D916F] text-black">
Email
</TableHead>
<TableHead className="border-b border-[#7D916F] text-black">
Phone Number
</TableHead>
</TableRow>
</TableHeader>
<TableBody className="text-black">
Expand All @@ -90,9 +93,12 @@ export default function RsvpListModal({ eventId }: RsvpListModalProps) {
<TableCell className="border-r border-t border-r-[#7D916F] border-t-[#DEE4DB]">
{a.user.last_name}
</TableCell>
<TableCell className="text6789-[#5C764B] border-t border-t-[#DEE4DB] underline">
<TableCell className="text6789-[#5C764B] border-r border-t border-r-[#7D916F] border-t-[#DEE4DB] underline">
<a href={`mailto:${a.user.email}`}>{a.user.email}</a>
</TableCell>
<TableCell className="border-t border-t-[#DEE4DB]">
{a.user.phone}
</TableCell>
</TableRow>
))}
</TableBody>
Expand Down
1 change: 1 addition & 0 deletions client/src/hooks/getRSVPs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ interface User {
first_name: string;
last_name: string;
email: string;
phone: string;
}

interface RSVP {
Expand Down

0 comments on commit ecd6f57

Please sign in to comment.