From 74976b6512734d3f271724bf81a5e0333b0a5eb8 Mon Sep 17 00:00:00 2001 From: Keannu Bernasol Date: Thu, 4 Jan 2024 09:58:27 +0800 Subject: [PATCH] Added template for adding restricted buttons in drawer --- src/Components/Drawer/Drawer.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Components/Drawer/Drawer.tsx b/src/Components/Drawer/Drawer.tsx index 6d931c9..8acf7ab 100644 --- a/src/Components/Drawer/Drawer.tsx +++ b/src/Components/Drawer/Drawer.tsx @@ -74,10 +74,7 @@ export default function Drawer() {

- {user.isFetched && - user.data && - !user.data.is_teacher && - !user?.data?.is_technician ? ( + {!user.data?.is_teacher && !user?.data?.is_technician ? ( <>
+ {user.data?.is_teacher ?

You are a teacher

: null}
); }