added roles
This commit is contained in:
parent
dac346775d
commit
096dc32d6a
@ -134,8 +134,9 @@ export function ConsoleLayout() {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
{(isAdmin || userRoles?.includes('Admin') || userRoles?.includes('Manager')) && (
|
||||||
|
<div className="px-2 pb-1 border-b border-gray-100 mb-1 flex flex-col gap-1">
|
||||||
{isAdmin && (
|
{isAdmin && (
|
||||||
<div className="px-2 pb-1 border-b border-gray-100 mb-1">
|
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/admin/datasets"
|
to="/admin/datasets"
|
||||||
className={({ isActive }) => cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
|
className={({ isActive }) => cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
|
||||||
@ -143,9 +144,10 @@ export function ConsoleLayout() {
|
|||||||
<Database size={16} />
|
<Database size={16} />
|
||||||
Manage Datasets
|
Manage Datasets
|
||||||
</NavLink>
|
</NavLink>
|
||||||
|
)}
|
||||||
<NavLink
|
<NavLink
|
||||||
to="/admin/users"
|
to="/admin/users"
|
||||||
className={({ isActive }) => cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer mt-1", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
|
className={({ isActive }) => cn("w-full text-left px-3 py-2 text-sm font-medium hover:bg-indigo-50 hover:text-indigo-700 rounded-md transition-colors flex items-center gap-2 cursor-pointer", isActive ? "text-indigo-700 bg-indigo-50" : "text-gray-700")}
|
||||||
>
|
>
|
||||||
<Users size={16} />
|
<Users size={16} />
|
||||||
Manage Users
|
Manage Users
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user