Skip to content

Commit bb5cb55

Browse files
authored
Merge branch 'CodeChefVIT:prod' into prod
2 parents 08ff4b7 + 23d5b52 commit bb5cb55

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/components/CookoffBanner.tsx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,10 @@ export default function CookoffBanner() {
1717
className="md:hidden"
1818
/>
1919

20-
<span className="hidden md:block">
21-
Marking 10 years of coding excellence, CookOff is back as
22-
graVITas&apos; biggest coding challenge – test your skills and make
23-
history!
24-
</span>
20+
<span className="hidden md:block">
21+
10 Years. Hundreds of Coders. One Champion.
22+
CookOff, the biggest competitive coding challenge of graVITas is back!
23+
</span>
2524

2625
<Link
2726
href="https://gravitas.vit.ac.in/events/bdfcebea-c141-4a61-ac73-61dec96c08f4"

src/components/SideBar.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,13 @@ function SideBar({
4848
const exams =
4949
filterOptions?.unique_exams.map((exam) => ({ label: exam, value: exam })) ?? [];
5050
const slots =
51-
filterOptions?.unique_slots.map((slot) => ({ label: slot, value: slot })) ?? [];
51+
filterOptions?.unique_slots
52+
.sort((a, b) => a.localeCompare(b, undefined, { numeric: true }))
53+
.map((slot) => ({ label: slot, value: slot })) ?? [];
5254
const years =
53-
filterOptions?.unique_years.map((year) => ({ label: year, value: year })) ?? [];
55+
filterOptions?.unique_years
56+
.sort((a, b) => b.localeCompare(a))
57+
.map((year) => ({ label: year, value: year })) ?? [];
5458
const semesters =
5559
filterOptions?.unique_semesters.map((semester) => ({
5660
label: semester,

0 commit comments

Comments
 (0)