Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions apps/2024/src/app/(main)/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ export default async function Dashboard() {

const hacker = user.hackers.find((hacker) => hacker.hackathonID === 1);

if (hacker?.status === "pending" || hacker?.status === "waitlisted") {
hacker.status = "denied";
}

return (
<div className="h-auto bg-[url('/sky-register.svg')] bg-cover px-8 pt-20">
<Tabs defaultValue="status">
Expand Down Expand Up @@ -59,12 +63,6 @@ export default async function Dashboard() {
hacker.status.slice(1)
: "Not Applied"}
</p>
{hacker?.status === "pending" && (
<p className="mt-2 text-sm text-muted-foreground">
Your application is currently under review. We'll notify
you once a decision has been made.
</p>
)}
{hacker?.status === "accepted" && (
<p className="mt-2 text-sm text-muted-foreground">
You have been accepted for Knight Hacks, but unfortunately
Expand All @@ -84,12 +82,6 @@ export default async function Dashboard() {
time. We encourage you to apply for future events!
</p>
)}
{hacker?.status === "waitlisted" && (
<p className="mt-2 text-sm text-muted-foreground">
Your application has been waitlisted. We'll notify you if
a spot opens up.
</p>
)}
{hacker?.status === "withdrawn" && (
<p className="mt-2 text-sm text-muted-foreground">
You have withdrawn your application.
Expand Down
Loading
Loading