Refactor filter menu to be usable by all user types and added initial content for teacher dashboard

This commit is contained in:
Keannu Christian Bernasol 2023-12-29 17:44:29 +08:00
parent 8e51dc0abd
commit 9f870319b4
5 changed files with 77 additions and 7 deletions

View file

@ -6,6 +6,7 @@ import TechnicianEquipmentButtons from "../../Components/DashboardPage/Technicia
import TechnicianLogButtons from "../../Components/DashboardPage/Technician/TechnicianLogButtons";
import StudentTransactionListView from "../../Components/DashboardPage/Student/StudentTransactionListView";
import StudentDashboard from "../../Components/DashboardPage/Student/StudentDashboard";
import TeacherTransactionListView from "../../Components/DashboardPage/Teacher/TeacherTransactionListView";
export default function Dashboard() {
return (
<div style={styles.background}>
@ -32,7 +33,7 @@ export default function Dashboard() {
</div>
</RestrictedComponent>
<RestrictedComponent allow_only={"Teacher"}>
<p style={styles.text_dark}>Welcome teacher!</p>
<TeacherTransactionListView />
</RestrictedComponent>
</div>
);