mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2025-05-17 11:58:14 +08:00
Added set types to restriction components and added placeholder content for students and teachers in dashboard page
This commit is contained in:
parent
34bb54f8b1
commit
63b32feb38
3 changed files with 8 additions and 2 deletions
|
@ -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>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue