From 354d77a3a72ae7f87c5d71d150a7a1b993274cdf Mon Sep 17 00:00:00 2001 From: Davor Date: Wed, 6 Jul 2022 20:26:48 +0200 Subject: [PATCH] Grey out app section if chosen dashboard role is admin --- src/components/UserModal/UserModal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/UserModal/UserModal.tsx b/src/components/UserModal/UserModal.tsx index 644d536..aa25589 100644 --- a/src/components/UserModal/UserModal.tsx +++ b/src/components/UserModal/UserModal.tsx @@ -213,8 +213,8 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps) )}
-
-
    +
    +
      {fields.map((item, index) => { if (item.name === 'dashboard') { return null;