From b010568e4e24e4353a5919ad7a5a843927d0eed3 Mon Sep 17 00:00:00 2001 From: Hazem Krimi Date: Sun, 2 May 2021 03:59:01 +0100 Subject: [PATCH] Update sidebar component --- src/components/Sidebar/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/Sidebar/index.tsx b/src/components/Sidebar/index.tsx index 29ddc19..cfcbd15 100644 --- a/src/components/Sidebar/index.tsx +++ b/src/components/Sidebar/index.tsx @@ -9,7 +9,9 @@ const Sidebar = () => { return ( - } color={role} onClick={() => {}} /> + {role !== 'admin' && ( + } color={role} onClick={() => {}} /> + )} ); };