Add student actions in student dashboard

This commit is contained in:
Keannu Christian Bernasol 2023-12-22 15:51:39 +08:00
parent a6e91830c4
commit 6970810256
3 changed files with 99 additions and 280 deletions

View file

@ -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 (
<div style={styles.background}>
@ -16,8 +16,20 @@ export default function Dashboard() {
<TechnicianLogButtons />
</RestrictedComponent>
<RestrictedComponent allow_only={"Student"}>
<StudentTransactionListView />
<StudentButtons />
<div
style={{
...styles.flex_row,
...{
flexWrap: "wrap",
justifyContent: "center",
marginLeft: "16px",
marginRight: "16px",
},
}}
>
<StudentTransactionListView />
<StudentDashboard />
</div>
</RestrictedComponent>
<RestrictedComponent allow_only={"Teacher"}>
<p style={styles.text_dark}>Welcome teacher!</p>