Skip to content

Commit 91a3ff4

Browse files
committed
handle rejected application status in dashboard status page
1 parent d1d3649 commit 91a3ff4

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

client/src/app/dashboard/(application)/(status)/page.tsx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ function InstructionsArticle({
6060
</article>
6161
)
6262

63+
if (application.applicationStatus === "rejected")
64+
return (
65+
<article>
66+
<p>Unfortunately, you are ineligible for a place at DurHack.</p>
67+
<p>If you believe this is a mistake, please drop us a line at{" "}
68+
<a className="underline" href="mailto:[email protected]">
69+
70+
</a>.
71+
</p>
72+
</article>
73+
)
74+
6375
if (application.applicationStatus !== "unsubmitted") return null
6476

6577
if (filledOutCount === 0) {

client/src/components/dashboard/application-status-indicator.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const applicationStatusBadgeVariants = cva("capitalize", {
1313
incomplete: "bg-destructive text-destructive-foreground",
1414
unsubmitted: "bg-orange-600 text-white",
1515
submitted: "bg-success text-success-foreground",
16+
rejected: "bg-destructive text-destructive-foreground",
1617
accepted: "bg-purple-800 text-white",
1718
"waiting-list": "bg-sky-600 text-white",
1819
},

0 commit comments

Comments
 (0)