Skip to content
Snippets Groups Projects
Commit 8ecb0f02 authored by danieldeng2's avatar danieldeng2
Browse files

Update piazza code and course title

parent 4da0e37d
No related branches found
No related tags found
No related merge requests found
......@@ -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/";
......
......@@ -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} />
</>
);
};
......
......@@ -99,4 +99,4 @@ const ModuleResources: React.FC = () => {
);
};
export default ModuleResources;
export default ModuleResources;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment