diff --git a/src/Components/Drawer/Drawer.tsx b/src/Components/Drawer/Drawer.tsx index 8acf7ab..fde882f 100644 --- a/src/Components/Drawer/Drawer.tsx +++ b/src/Components/Drawer/Drawer.tsx @@ -14,6 +14,9 @@ import { useDispatch } from "react-redux"; import { auth_toggle } from "../Plugins/Redux/Slices/AuthSlice/AuthSlice"; import { toast } from "react-toastify"; import { useNavigate } from "react-router-dom"; +import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted"; +import ArticleIcon from "@mui/icons-material/Article"; +import AssessmentIcon from "@mui/icons-material/Assessment"; export default function Drawer() { const queryclient = useQueryClient(); const user = useQuery({ queryKey: ["user"], queryFn: UserAPI }); @@ -165,6 +168,64 @@ export default function Drawer() { } label={"Dashboard"} /> + {user.data?.is_technician ? ( + <> + { + navigate("/view/equipment_instances"); + }} + icon={ + + } + label={"All Equipments"} + /> + { + navigate("/view/transactions"); + }} + icon={ + + } + label={"Transactions"} + /> + { + navigate("/view/transactions/report"); + }} + icon={ + + } + label={"Transaction Report"} + /> + + ) : null} { navigate("/"); @@ -197,7 +258,6 @@ export default function Drawer() { } label={"Log out"} /> - {user.data?.is_teacher ?

You are a teacher

: null} ); } diff --git a/src/Components/DrawerButton/DrawerButton.tsx b/src/Components/DrawerButton/DrawerButton.tsx index 3d513f1..ff62915 100644 --- a/src/Components/DrawerButton/DrawerButton.tsx +++ b/src/Components/DrawerButton/DrawerButton.tsx @@ -23,8 +23,8 @@ export default function DrawerButton(props: props) { onMouseLeave={() => setClicked(false)} style={{ borderRadius: 24, - minWidth: "196px", - maxWidth: "196px", + minWidth: "212px", + maxWidth: "212px", borderColor: colors.button_border, borderStyle: "solid", borderWidth: "2px",