diff --git a/frontend/src/components/organisms/LeftBarModule/index.tsx b/frontend/src/components/organisms/LeftBarModule/index.tsx index c621898ed6d4538ed470d7a4a82b8956ec04c8f0..80c2b54f4c428d19241932b6dd46bfc7e3394748 100644 --- a/frontend/src/components/organisms/LeftBarModule/index.tsx +++ b/frontend/src/components/organisms/LeftBarModule/index.tsx @@ -13,7 +13,12 @@ const LeftBarModule: React.FC = () => { CO140: "k0r3c04qwhj3e", CO142: "k0r3c156mj35b", CO112: "k0r3by316kp6", - CO145: "k0r3c1h4zik5y", + CO145: "k0r3c1h4zik5y", + "CO120.2": "k0r3bzfpcno23", + CO150: "k0r3c1t4x8k6l", + CO113: "k0r3byq0f68t", + CO141: "k0r3c0t7dak4o", + CO130: "k0r3bzsith2r", }; let piazzaLink = "https://piazza.com/class/"; diff --git a/frontend/src/components/pages/ModuleOverview/index.tsx b/frontend/src/components/pages/ModuleOverview/index.tsx index d963e52d388a74e61067ead124342ee24d5fad54..8e8013ff3e6f0dee1807f96601ad639968027aa6 100644 --- a/frontend/src/components/pages/ModuleOverview/index.tsx +++ b/frontend/src/components/pages/ModuleOverview/index.tsx @@ -4,9 +4,54 @@ import { useParams } from "react-router-dom"; const ModuleOverview: React.FC = () => { let { id } = useParams(); + let modules = [ + { + title: "Introduction to Logic", + code: "CO140", + }, + { + title: "Discrete Mathematics", + code: "CO142", + }, + { + title: "Introduction to Computer Systems", + code: "CO112", + }, + { + title: "Mathematical Methods", + code: "CO145", + }, + { + title: "Java", + code: "CO120.2", + }, + { + title: "Graphs and Algorithms", + code: "CO150", + }, + { + title: "Introduction to Computer Architecture", + code: "CO113", + }, + { + title: "Reasoning About Programs", + code: "CO141", + }, + { + title: "Introduction to Databases", + code: "CO130", + }, + ]; + let heading = id; + for (let i in modules) { + if (modules[i].code === id) { + heading = modules[i].title; + break; + } + } return ( <> - <Dandruff heading={id} /> + <Dandruff heading={heading} /> </> ); }; diff --git a/frontend/src/components/pages/ModuleResources/index.tsx b/frontend/src/components/pages/ModuleResources/index.tsx index a45eb4f00f8537a3341231e523b55fe60da079f0..1f521461968160779e4770a9fb51769fd447b7d3 100644 --- a/frontend/src/components/pages/ModuleResources/index.tsx +++ b/frontend/src/components/pages/ModuleResources/index.tsx @@ -99,4 +99,4 @@ const ModuleResources: React.FC = () => { ); }; -export default ModuleResources; +export default ModuleResources; \ No newline at end of file