mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-04-05 09:31:35 +08:00
25 lines
1.2 KiB
TypeScript
25 lines
1.2 KiB
TypeScript
import Header from "../../Components/Header/Header";
|
|
import styles from "../../styles";
|
|
import RestrictedComponent from "../../Components/RestrictedComponent/RestrictedComponent";
|
|
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";
|
|
export default function Dashboard() {
|
|
return (
|
|
<div style={styles.background}>
|
|
<Header label={"Dashboard"} />
|
|
<RestrictedComponent allow_only={"Technician"}>
|
|
<TechnicianWidgets />
|
|
<TechnicianEquipmentButtons />
|
|
<TechnicianLogButtons />
|
|
</RestrictedComponent>
|
|
<RestrictedComponent allow_only={"Student"}>
|
|
<StudentTransactionFilterMenu />
|
|
</RestrictedComponent>
|
|
<RestrictedComponent allow_only={"Teacher"}>
|
|
<p style={styles.text_dark}>Welcome teacher!</p>
|
|
</RestrictedComponent>
|
|
</div>
|
|
);
|
|
}
|