Grey out app section if chosen dashboard role is admin

This commit is contained in:
Davor 2022-07-06 20:26:48 +02:00
parent f4df97494a
commit 354d77a3a7

View file

@ -213,7 +213,7 @@ export const UserModal = ({ open, onClose, userId, setUserId }: UserModalProps)
)} )}
<div> <div>
<div className="flow-root mt-6"> <div className={`flow-root mt-6 ${dashboardRole === UserRole.Admin ? 'opacity-70' : ''}`}>
<ul className="-my-5 divide-y divide-gray-200"> <ul className="-my-5 divide-y divide-gray-200">
{fields.map((item, index) => { {fields.map((item, index) => {
if (item.name === 'dashboard') { if (item.name === 'dashboard') {