Grey out app section if chosen dashboard role is admin
This commit is contained in:
parent
f4df97494a
commit
354d77a3a7
1 changed files with 2 additions and 2 deletions
|
@ -213,8 +213,8 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
|
|||
)}
|
||||
|
||||
<div>
|
||||
<div className="flow-root mt-6">
|
||||
<ul className="-my-5 divide-y divide-gray-200 ">
|
||||
<div className={`flow-root mt-6 ${dashboardRole === UserRole.Admin ? 'opacity-70' : ''}`}>
|
||||
<ul className="-my-5 divide-y divide-gray-200">
|
||||
{fields.map((item, index) => {
|
||||
if (item.name === 'dashboard') {
|
||||
return null;
|
||||
|
|
Loading…
Reference in a new issue