@@ -94,14 +94,14 @@ export default function ProfileHeader(props: {
9494 < CardDescription > Check your registration status.</ CardDescription >
9595 </ CardHeader >
9696 < CardContent className = "space-y-4" >
97- { userData . registration_status == 'unregistered' && (
97+ { /* { userData.registration_status == 'unregistered' && (
9898 <>
9999 <div className="flex flex-row items-center">
100100 <CardTitle>Unregistered – at this point, you will not be able to attend HackRU, we hope to see you in the spring!</CardTitle>
101101 </div>
102102 </>
103- ) }
104- { false && userData . registration_status == 'unregistered' && (
103+ )} */ }
104+ { userData . registration_status == 'unregistered' && (
105105 < >
106106 { waiverState && (
107107 < p className = "mt-2 text-xs italic text-green-500" >
@@ -225,7 +225,7 @@ export default function ProfileHeader(props: {
225225 < >
226226 < div className = "flex flex-row items-center" >
227227 < CardTitle >
228- Registered! There is an extremely high chance that you do not have space for you this fall, we hope to see you in spring! Registrations open at least a full month before the event and are first come first serve.
228+ Registered! There is an extremely high chance that you do not have space for you this fall, we hope to see you in spring! Registrations open at least a full month before the event and are first come first serve.
229229 </ CardTitle >
230230 </ div >
231231 </ >
@@ -256,68 +256,68 @@ export default function ProfileHeader(props: {
256256 { ( userData . registration_status == 'confirmation' ||
257257 userData . registration_status == 'coming' ||
258258 userData . registration_status == 'not_coming' ) && (
259- < >
260- < div className = "flex flex-row items-center justify-center" >
261- { uploadingNewConfirmationStatus && (
262- < p className = "" > Loading confirmation status...</ p >
263- ) }
264- { errorMessage && (
265- < p className = "text-red-500" > { errorMessage } </ p >
266- ) }
259+ < >
260+ < div className = "flex flex-row items-center justify-center" >
261+ { uploadingNewConfirmationStatus && (
262+ < p className = "" > Loading confirmation status...</ p >
263+ ) }
264+ { errorMessage && (
265+ < p className = "text-red-500" > { errorMessage } </ p >
266+ ) }
267267
268- { ! uploadingNewConfirmationStatus && (
269- < >
270- { userData . registration_status == 'confirmation' && (
271- < >
272- < CardTitle > Confirmation</ CardTitle >
273- < Button
274- className = "ml-auto"
275- onClick = { ( ) => onConfirmationChange ( true ) }
276- >
277- Coming
278- </ Button >
279- < Button
280- className = "ml-auto"
281- onClick = { ( ) => onConfirmationChange ( false ) }
282- >
283- Not Coming
284- </ Button >
285- </ >
286- ) }
287- { userData . registration_status == 'coming' && (
288- < >
289- < CardTitle >
290- You have indicated you are coming. If your status
291- changes to confirmed you are guaranteed entry
292- between 9am and 10:30am. After 10:30am, check in
293- will be first come first serve.
294- </ CardTitle >
295- < Button
296- className = "ml-auto"
297- onClick = { ( ) => onConfirmationChange ( false ) }
298- >
299- Not Coming
300- </ Button >
301- </ >
302- ) }
303- { userData . registration_status == 'not_coming' && (
304- < >
305- < CardTitle >
306- You are not coming. Thanks for letting us know.
307- </ CardTitle >
308- < Button
309- className = "ml-auto"
310- onClick = { ( ) => onConfirmationChange ( true ) }
311- >
312- Coming
313- </ Button >
314- </ >
315- ) }
316- </ >
317- ) }
318- </ div >
319- </ >
320- ) }
268+ { ! uploadingNewConfirmationStatus && (
269+ < >
270+ { userData . registration_status == 'confirmation' && (
271+ < >
272+ < CardTitle > Confirmation</ CardTitle >
273+ < Button
274+ className = "ml-auto"
275+ onClick = { ( ) => onConfirmationChange ( true ) }
276+ >
277+ Coming
278+ </ Button >
279+ < Button
280+ className = "ml-auto"
281+ onClick = { ( ) => onConfirmationChange ( false ) }
282+ >
283+ Not Coming
284+ </ Button >
285+ </ >
286+ ) }
287+ { userData . registration_status == 'coming' && (
288+ < >
289+ < CardTitle >
290+ You have indicated you are coming. If your status
291+ changes to confirmed you are guaranteed entry
292+ between 9am and 10:30am. After 10:30am, check in
293+ will be first come first serve.
294+ </ CardTitle >
295+ < Button
296+ className = "ml-auto"
297+ onClick = { ( ) => onConfirmationChange ( false ) }
298+ >
299+ Not Coming
300+ </ Button >
301+ </ >
302+ ) }
303+ { userData . registration_status == 'not_coming' && (
304+ < >
305+ < CardTitle >
306+ You are not coming. Thanks for letting us know.
307+ </ CardTitle >
308+ < Button
309+ className = "ml-auto"
310+ onClick = { ( ) => onConfirmationChange ( true ) }
311+ >
312+ Coming
313+ </ Button >
314+ </ >
315+ ) }
316+ </ >
317+ ) }
318+ </ div >
319+ </ >
320+ ) }
321321 </ CardContent >
322322 </ form >
323323 </ Card >
0 commit comments