diff --git a/src/Components/DashboardPage/Student/StudentButtons.tsx b/src/Components/DashboardPage/Student/StudentButtons.tsx deleted file mode 100644 index bb9d9b3..0000000 --- a/src/Components/DashboardPage/Student/StudentButtons.tsx +++ /dev/null @@ -1,277 +0,0 @@ -import styles from "../../../styles"; -import { useNavigate } from "react-router-dom"; -import { Button } from "@mui/material"; -import FormatListBulletedIcon from "@mui/icons-material/FormatListBulleted"; -import AddToQueueIcon from "@mui/icons-material/AddToQueue"; -import NoteAddIcon from "@mui/icons-material/NoteAdd"; -import NoteIcon from "@mui/icons-material/Note"; -import { colors } from "../../../styles"; -import ScienceIcon from "@mui/icons-material/Science"; -import ColorizeIcon from "@mui/icons-material/Colorize"; -import Popup from "reactjs-popup"; -import AddItemModal from "../../AddItemModal/AddItemModal"; -import AddSKUModal from "../../AddSKUModal/AddSKUModal"; -import { useState } from "react"; -export default function StudentButtons() { - const [addSKUmodalOpen, SetAddSKUModalOpen] = useState(false); - const [additemmodalOpen, SetAddItemModalOpen] = useState(false); - const navigate = useNavigate(); - return ( - <> -

- Equipments -

-
- - - - -
-
- - -
- SetAddSKUModalOpen(false)} - modal - position={"top center"} - contentStyle={{ - width: "32rem", - borderRadius: 16, - borderColor: "grey", - borderStyle: "solid", - borderWidth: 1, - padding: 16, - alignContent: "center", - justifyContent: "center", - textAlign: "center", - }} - > - - - SetAddItemModalOpen(false)} - modal - position={"top center"} - contentStyle={{ - width: "32rem", - borderRadius: 16, - borderColor: "grey", - borderStyle: "solid", - borderWidth: 1, - padding: 16, - alignContent: "center", - justifyContent: "center", - textAlign: "center", - }} - > - - - - ); -} diff --git a/src/Components/DashboardPage/Student/StudentDashboard.tsx b/src/Components/DashboardPage/Student/StudentDashboard.tsx new file mode 100644 index 0000000..3374997 --- /dev/null +++ b/src/Components/DashboardPage/Student/StudentDashboard.tsx @@ -0,0 +1,84 @@ +import styles from "../../../styles"; +import { useNavigate } from "react-router-dom"; +import { Button } from "@mui/material"; +import AddBoxIcon from "@mui/icons-material/AddBox"; +import { colors } from "../../../styles"; +import Popup from "reactjs-popup"; +import { useState } from "react"; +export default function StudentDashboard() { + const [addTransactionModalOpen, SetAddTransactionModalOpen] = useState(false); + const navigate = useNavigate(); + return ( +
+

+ Student Actions +

+
+ +
+ SetAddTransactionModalOpen(false)} + modal + position={"top center"} + contentStyle={{ + width: "32rem", + borderRadius: 16, + borderColor: "grey", + borderStyle: "solid", + borderWidth: 1, + padding: 16, + alignContent: "center", + justifyContent: "center", + textAlign: "center", + }} + > +
+ +
+ ); +} diff --git a/src/Pages/DashboardPage/DashboardPage.tsx b/src/Pages/DashboardPage/DashboardPage.tsx index 36915ff..6e33cda 100644 --- a/src/Pages/DashboardPage/DashboardPage.tsx +++ b/src/Pages/DashboardPage/DashboardPage.tsx @@ -5,7 +5,7 @@ import TechnicianWidgets from "../../Components/DashboardPage/Technician/Technic import TechnicianEquipmentButtons from "../../Components/DashboardPage/Technician/TechnicianEquipmentButtons"; import TechnicianLogButtons from "../../Components/DashboardPage/Technician/TechnicianLogButtons"; import StudentTransactionListView from "../../Components/DashboardPage/Student/StudentTransactionListView"; -import StudentButtons from "../../Components/DashboardPage/Student/StudentButtons"; +import StudentDashboard from "../../Components/DashboardPage/Student/StudentDashboard"; export default function Dashboard() { return (
@@ -16,8 +16,20 @@ export default function Dashboard() { - - +
+ + +

Welcome teacher!