Add transaction view for student in dashboard page complete with filtering

This commit is contained in:
Keannu Christian Bernasol 2023-12-21 16:04:50 +08:00
parent d69945f789
commit eaa55f3ba7
6 changed files with 253 additions and 8 deletions

View file

@ -4,7 +4,7 @@ import RestrictedComponent from "../../Components/RestrictedComponent/Restricted
import TechnicianWidgets from "../../Components/DashboardPage/Technician/TechnicianWidgets";
import TechnicianEquipmentButtons from "../../Components/DashboardPage/Technician/TechnicianEquipmentButtons";
import TechnicianLogButtons from "../../Components/DashboardPage/Technician/TechnicianLogButtons";
import StudentTransactionFilterMenu from "../../Components/DashboardPage/Student/StudentTransactionFilterMenu";
import StudentTransactionListView from "../../Components/DashboardPage/Student/StudentTransactionListView";
export default function Dashboard() {
return (
<div style={styles.background}>
@ -15,7 +15,7 @@ export default function Dashboard() {
<TechnicianLogButtons />
</RestrictedComponent>
<RestrictedComponent allow_only={"Student"}>
<StudentTransactionFilterMenu />
<StudentTransactionListView />
</RestrictedComponent>
<RestrictedComponent allow_only={"Teacher"}>
<p style={styles.text_dark}>Welcome teacher!</p>