mirror of
https://github.com/lemeow125/Borrowing-TrackerFrontend.git
synced 2024-11-17 06:19:27 +08:00
Added template for adding restricted buttons in drawer
This commit is contained in:
parent
444a71fb9d
commit
74976b6512
1 changed files with 2 additions and 4 deletions
|
@ -74,10 +74,7 @@ export default function Drawer() {
|
|||
</p>
|
||||
</div>
|
||||
</div>
|
||||
{user.isFetched &&
|
||||
user.data &&
|
||||
!user.data.is_teacher &&
|
||||
!user?.data?.is_technician ? (
|
||||
{!user.data?.is_teacher && !user?.data?.is_technician ? (
|
||||
<>
|
||||
<div
|
||||
style={{
|
||||
|
@ -200,6 +197,7 @@ export default function Drawer() {
|
|||
}
|
||||
label={"Log out"}
|
||||
/>
|
||||
{user.data?.is_teacher ? <p>You are a teacher</p> : null}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue