Skip to content

Commit

Permalink
style(display ganttchart): added building icon
Browse files Browse the repository at this point in the history
  • Loading branch information
NguyenDonLam committed Oct 16, 2024
1 parent 915d401 commit 5c653c8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/src/components/ModSiderbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ import ListItem from "@mui/material/ListItem";
import ListItemButton from "@mui/material/ListItemButton";
import ListItemText from "@mui/material/ListItemText";
import { Routes, Route, Link } from "react-router-dom";
import LocationCityIcon from "@mui/icons-material/LocationCity";

import GanttChart from "./GanttChart";
import { TimetableSolution } from "../scripts/api";
import { useState } from "react";
import { ListItemIcon } from "@mui/material";

interface SidebarProps {
marginTop: number;
Expand Down Expand Up @@ -57,16 +59,15 @@ export default function ModSidebar({ marginTop, width }: SidebarProps) {
sx={{
backgroundColor:
selectedCampus === campusName
? "#f8d5ac"
? "lightgrey"
: "transparent",
"&:hover": {
backgroundColor: "#fdefe0",
},
}}
>
<ListItemIcon>
<LocationCityIcon/>
</ListItemIcon>
<ListItemText
primary={campusName}
sx={{ textAlign: "Center" }}
/>
</ListItemButton>
</ListItem>
Expand Down

0 comments on commit 5c653c8

Please sign in to comment.