@@ -4,7 +4,7 @@ import Button from "@cloudscape-design/components/button";
4
4
5
5
import UserContext from "@/lib/admin/UserContext" ;
6
6
import { isCheckinLead } from "@/lib/admin/authorization" ;
7
- import { Decision , PostAcceptedStatus } from "@/lib/admin/useApplicant" ;
7
+ import { Status } from "@/lib/admin/useApplicant" ;
8
8
import { Participant } from "@/lib/admin/useParticipants" ;
9
9
import ParticipantActionPopover from "./ParticipantActionPopover" ;
10
10
@@ -22,7 +22,8 @@ function ParticipantAction({
22
22
const { role } = useContext ( UserContext ) ;
23
23
24
24
const isCheckin = isCheckinLead ( role ) ;
25
- const isWaiverSigned = participant . status === PostAcceptedStatus . signed ;
25
+ const isWaiverSigned = participant . status === Status . signed ;
26
+ const isAccepted = participant . status === Status . accepted ;
26
27
27
28
const promoteButton = (
28
29
< Button
@@ -46,7 +47,7 @@ function ParticipantAction({
46
47
</ Button >
47
48
) ;
48
49
49
- if ( participant . status === Decision . waitlisted ) {
50
+ if ( participant . status === Status . waitlisted ) {
50
51
if ( ! isCheckin ) {
51
52
return (
52
53
< ParticipantActionPopover content = "Only check-in leads are allowed to promote walk-ins." >
@@ -55,9 +56,12 @@ function ParticipantAction({
55
56
) ;
56
57
}
57
58
return promoteButton ;
58
- } else if ( isWaiverSigned ) {
59
+ } else if ( isWaiverSigned || isAccepted ) {
60
+ const content = isWaiverSigned
61
+ ? "Must confirm attendance in portal first"
62
+ : "Must sign waiver and confirm attendance in portal" ;
59
63
return (
60
- < ParticipantActionPopover content = "Must confirm attendance in portal first" >
64
+ < ParticipantActionPopover content = { content } >
61
65
{ checkinButton }
62
66
</ ParticipantActionPopover >
63
67
) ;
0 commit comments