Skip to content

Commit 5a8f020

Browse files
committed
make deploy ready
1 parent 5e48838 commit 5a8f020

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

scrapers/overrides.toml.d/sem/21l-sp.toml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
#:schema ../override-schema.json
22

3-
['21L.004']
4-
lectureRawSections = ["1-134/MW/0/1-2.30"]
5-
lectureSections = [[[[14, 3], [82, 3]], "1-134"]]
6-
73
["21L.024"]
84
name = "Life, Death and Freedom: Literature and Existentialism"
95

@@ -56,9 +52,11 @@ name = "Greek Reading 2: Advanced Greek Readings (Second Half Term Begins March
5652

5753
["21L.611"]
5854
name = "Latin I (First Half Term Ends March 20)"
55+
inCharge = "M. Shiffer"
5956

6057
["21L.612"]
6158
name = "Latin II (Second Half Term Begins March 30)"
59+
inCharge = "M. Shiffer"
6260

6361
["21L.703"]
6462
name = "Stoppard, Churchill and Company: Studies in Drama"

src/components/ClassTypes.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ import { LuGraduationCap, LuDumbbell } from "react-icons/lu";
88
import type { IconType } from "react-icons/lib";
99
import { HydrantContext } from "~/lib/hydrant";
1010

11+
// TODO: Enable PE when ready (eg. email from DAPER)
12+
const PE_READY = false;
13+
1114
function classTypeComponents(termKeys: ClassType[]) {
1215
const obj = {} as Record<ClassType, [IconType, React.ComponentType]>;
1316

@@ -28,7 +31,8 @@ export const ClassTypesSwitcher = () => {
2831

2932
const tabs = classTypeComponents([
3033
...(state.classes.size > 0 ? [ClassType.ACADEMIC] : []),
31-
...(state.peClasses.size > 0 ? [ClassType.PEW] : []),
34+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
35+
...(state.peClasses.size > 0 && PE_READY ? [ClassType.PEW] : []),
3236
]);
3337

3438
if (Object.keys(tabs).length > 1)

0 commit comments

Comments
 (0)