-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
apps/site/src/app/(main)/portal/@applicant/ConfirmAttendance.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { PortalStatus } from "./ApplicantPortal"; | ||
import Button from "@/lib/components/Button/Button"; | ||
|
||
interface ConfirmAttendanceProps { | ||
status: string; | ||
} | ||
|
||
function ConfirmAttendance({ status }: ConfirmAttendanceProps) { | ||
const buttonText = | ||
status === PortalStatus.confirmed | ||
? "I am no longer able to attend Hack at UCI 2023" | ||
: "I will be attending Hack at UCI 2023"; | ||
|
||
return ( | ||
<div className="mt-4"> | ||
<hr /> | ||
<h3 className="text-3xl my-4">RSVP</h3> | ||
{status === PortalStatus.confirmed ? ( | ||
<p> | ||
Thank you for confirming your attendance. We look forward to seeing | ||
you at the event! | ||
</p> | ||
) : ( | ||
<p> | ||
If you plan on attending IrvineHacks 2024, please confirm your | ||
attendance below! | ||
</p> | ||
)} | ||
<form method="post" action="/api/user/rsvp"> | ||
<Button className="text-color-red" text={buttonText} /> | ||
</form> | ||
</div> | ||
); | ||
} | ||
|
||
export default ConfirmAttendance; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters