Skip to content

Commit

Permalink
fix(merge): extra bracket causing build fail
Browse files Browse the repository at this point in the history
  • Loading branch information
ImJustChew committed Aug 27, 2024
1 parent 9299480 commit 79b6923
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 13 deletions.
10 changes: 7 additions & 3 deletions src/app/[lang]/(mods-pages)/courses/ClasssRefinementItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ const ClassRefinementItem = ({
"All"
) : (
<div className="flex flex-col gap-1">
{selected.map(i =>
{selected.map((i) => (
<Badge key={i} variant="outline" className="">
{getFormattedClassCode(i, selectedSemester, 'zh')}
{getFormattedClassCode(i, selectedSemester, "zh")}
</Badge>
))}
</div>
Expand Down Expand Up @@ -163,7 +163,11 @@ const ClassRefinementItem = ({
/>
</div>
<span className="mr-4">
{getFormattedClassCode(item.label, selectedSemester, 'zh')}
{getFormattedClassCode(
item.label,
selectedSemester,
"zh",
)}
</span>
<Badge variant="outline">{item.count}</Badge>
</div>
Expand Down
14 changes: 4 additions & 10 deletions src/hooks/contexts/useUserTimetable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,14 @@ import {
useMemo,
useLayoutEffect,
} from "react";
import supabase, {
CourseDefinition,
CourseSyllabusView,
} from "@/config/supabase";
import { createTimetableFromCourses } from "@/helpers/timetable";
import { CourseTimeslotData } from "@/types/timetable";
import { MinimalCourse, RawCourseID } from "@/types/courses";
import { useLocalStorage } from "usehooks-ts";
import { lastSemester, currentSemester } from "@/const/semester";
import supabase, { CourseDefinition } from "@/config/supabase";
import { RawCourseID } from "@/types/courses";
import { lastSemester } from "@/const/semester";
import { getSemesterFromID } from "@/helpers/courses";
import { event } from "@/lib/gtag";
import { timetableColors } from "@/const/timetableColors";
import { useQuery } from "@tanstack/react-query";
import { auth, db } from "@/config/firebase";
import { auth } from "@/config/firebase";
import { useAuthState } from "react-firebase-hooks/auth";
import useSyncedStorage from "../useSyncedStorage";

Expand Down

0 comments on commit 79b6923

Please sign in to comment.