"docs/git@gitlab.doc.ic.ac.uk:yw21218/metarl.git" did not exist on "7872d59715c5fad20add32908bf41e31c5f6a50c"
Newer
Older
import React from "react";
import "./App.scss";
import TopBar from "./organisms/TopBar";
import BottomBar from "./organisms/BottomBar";
faCalendarWeek,
faChalkboardTeacher,
} from "@fortawesome/free-solid-svg-icons";
import StandardView from "./pages/StandardView";
class App extends React.Component<{}, MyState> {
toggleLeftBar(e: React.MouseEvent<HTMLElement>) {
e.preventDefault();
this.setState((state) => ({
}
render() {
const horizontalBarPages = [
{ name: "Home", path: "/home", icon: faHome },
{ name: "Modules", path: "/modules", icon: faChalkboardTeacher },
{ name: "Timetable", path: "/timetable", icon: faCalendarWeek },
{ name: "Exams", path: "/exams", icon: faBookOpen },
];
return (
<>
onIconClick={(e) => this.toggleLeftBar(e)}
/>
<StandardView
pages={horizontalBarPages}
onOverlayClick={(e) => this.toggleLeftBar(e)}
<BottomBar pages={horizontalBarPages} />
</>
);
}
}