We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b92fb9a commit b542356Copy full SHA for b542356
src/app/student/events/_components/EventDetails.tsx
@@ -98,15 +98,19 @@ export default function EventDetails({
98
{event.open_for_signup_student &&
99
today < (event.registration_end ?? event.event_start) ? (
100
<Link href={event.signup_link ?? ""}>
101
- <Button className="w-full">Sign Up</Button>
+ <Button className="w-full">
102
+ {event.participant_count < event.event_max_capacity
103
+ ? "Signup"
104
+ : "Join waiting List"}
105
+ </Button>
106
</Link>
107
) : (
108
<Button disabled>
109
{today < (event.registration_end ?? event.event_start) ? (
110
<> Signup opening soon ! </>
111
112
<>
- Registration closed
113
+ Registration closed{" "}
114
{event.registration_end
115
? formatTimestampAsDate(event.registration_end)
116
: ""}
0 commit comments