Added set types to restriction components and added placeholder content for students and teachers in dashboard page

This commit is contained in:
Keannu Christian Bernasol 2023-12-16 15:52:26 +08:00
parent 34bb54f8b1
commit 63b32feb38
3 changed files with 8 additions and 2 deletions

View file

@ -13,6 +13,12 @@ export default function Dashboard() {
<TechnicianEquipmentButtons />
<TechnicianLogButtons />
</RestrictedComponent>
<RestrictedComponent allow_only={"Student"}>
<p style={styles.text_dark}>Welcome student!</p>
</RestrictedComponent>
<RestrictedComponent allow_only={"Teacher"}>
<p style={styles.text_dark}>Welcome teacher!</p>
</RestrictedComponent>
</div>
);
}