1- import { Anchor , Avatar , Badge , Button , Table as MantineTable , Tooltip , ActionIcon , Popover , Group } from '@mantine/core' ;
2- import { Attendee , MessageType } from "../../../types.ts" ;
3- import { IconMailForward , IconPlus , IconSend , IconTrash , IconUserCog , IconQrcode , IconNote , IconCopy } from "@tabler/icons-react" ;
1+ import { ActionIcon , Anchor , Avatar , Badge , Button , Group , Popover , Table as MantineTable , Tooltip } from '@mantine/core' ;
2+ import { Attendee , IdParam , MessageType } from "../../../types.ts" ;
3+ import {
4+ IconCopy ,
5+ IconMailForward ,
6+ IconNote ,
7+ IconPlus ,
8+ IconQrcode ,
9+ IconQrcodeOff ,
10+ IconSend ,
11+ IconTrash ,
12+ IconUserCog
13+ } from "@tabler/icons-react" ;
414import { getInitials , getProductFromEvent } from "../../../utilites/helpers.ts" ;
515import { Table , TableHead } from "../Table" ;
6- import { useDisclosure , useClipboard } from "@mantine/hooks" ;
16+ import { useClipboard , useDisclosure } from "@mantine/hooks" ;
717import { SendMessageModal } from "../../modals/SendMessageModal" ;
818import { useState } from "react" ;
919import { NoResultsSplash } from "../NoResultsSplash" ;
@@ -22,7 +32,6 @@ import {ActionMenu} from '../ActionMenu';
2232import { AttendeeStatusBadge } from "../AttendeeStatusBadge" ;
2333import { CheckInStatusModal } from "../CheckInStatusModal" ;
2434import { prettyDate } from "../../../utilites/dates.ts" ;
25- import { IdParam } from "../../../types.ts" ;
2635
2736interface AttendeeTableProps {
2837 attendees : Attendee [ ] ;
@@ -116,7 +125,7 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
116125 return getCheckInCount ( attendee ) > 0 ;
117126 } ;
118127
119- const handleCopyEmail = ( email : string , attendeeId : number | undefined ) => {
128+ const handleCopyEmail = ( email : string ) => {
120129 clipboard . copy ( email ) ;
121130 showSuccess ( t `Email address copied to clipboard` ) ;
122131 setEmailPopoverId ( null ) ;
@@ -202,7 +211,7 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
202211 variant = "light"
203212 color = "gray"
204213 leftSection = { < IconCopy size = { 16 } /> }
205- onClick = { ( ) => handleCopyEmail ( attendee . email , attendee . id ) }
214+ onClick = { ( ) => handleCopyEmail ( attendee . email ) }
206215 >
207216 { t `Copy Email` }
208217 </ Button >
@@ -253,7 +262,8 @@ export const AttendeeTable = ({attendees, openCreateModal}: AttendeeTableProps)
253262 onClick = { ( ) => handleModalClick ( attendee , checkInModal ) }
254263 aria-label = { t `View check-in status` }
255264 >
256- < IconQrcode size = { 18 } />
265+ { ! hasChecked && < IconQrcodeOff size = { 18 } /> }
266+ { hasChecked && < IconQrcode size = { 18 } /> }
257267 { hasChecked && (
258268 < Badge
259269 size = "xs"
0 commit comments