Skip to content

Commit a5d760c

Browse files
committed
Fixes to dashboard
1 parent 9840fc9 commit a5d760c

File tree

5 files changed

+131
-272
lines changed

5 files changed

+131
-272
lines changed

app/dashboard/components/card.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const CardDescription = React.forwardRef<
5050
>(({ className, ...props }, ref) => (
5151
<p
5252
ref={ref}
53-
className={cn("text-sm text-gray-500 dark:text-gray-400", className)}
53+
className={cn("text-xl text-gray-500 dark:text-gray-400", className)}
5454
{...props}
5555
/>
5656
))

app/dashboard/components/input.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
1212
type={type}
1313
className={cn(
1414
`flex h-10 w-full rounded-md border border-gray-200 bg-white px-3 py-2
15-
text-sm ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium
15+
ring-offset-white file:border-0 file:bg-transparent file:text-sm file:font-medium
1616
file:text-white file:bg-gray-500 file:rounded-md
1717
placeholder:text-gray-500 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-gray-950
1818
focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50

app/dashboard/components/profileHeader.tsx

Lines changed: 65 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -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>

app/dashboard/layout.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ export default function Layout({ children
1515
id="entry-radial"
1616
>
1717
<Navbar />
18-
<Suspense>
18+
{/* <Suspense>
1919
<Cursor />
20-
</Suspense>
20+
</Suspense> */}
2121
{children}
2222
<Suspense>
2323
{/* <StarryBackground /> */}

0 commit comments

Comments
 (0)