From 4efe848f3a7f45a76aad3191c8267022ed62f8b5 Mon Sep 17 00:00:00 2001
From: Tracewebstudio Dev
({})); if (res.ok) { const roles: string[] = Array.isArray(data) ? data : Array.isArray(data?.data) ? data.data : []; - setActiveRoles(roles.map((r) => String(typeof r === "string" ? r : r.role_key || r.key || "").toUpperCase())); + setActiveRoles(roles.map((r) => String(typeof r === "string" ? r : (r as any).role_key || (r as any).key || "").toUpperCase())); } else { setActiveRoles([]); } @@ -496,13 +496,11 @@ export default function ExploreServicesPage() { "font-size": "12px", "font-weight": "700", cursor: - busyRoleKey() === card.key || - card.action === "Current Role" + busyRoleKey() === card.key ? "not-allowed" : "pointer", opacity: - busyRoleKey() === card.key || - card.action === "Current Role" + busyRoleKey() === card.key ? "0.6" : "1", "margin-top": "auto", @@ -517,13 +515,11 @@ export default function ExploreServicesPage() { "font-size": "12px", "font-weight": "700", cursor: - busyRoleKey() === card.key || - card.action === "Current Role" + busyRoleKey() === card.key ? "not-allowed" : "pointer", opacity: - busyRoleKey() === card.key || - card.action === "Current Role" + busyRoleKey() === card.key ? "0.6" : "1", "margin-top": "auto", diff --git a/src/components/dashboard/MyDashboardPage.tsx b/src/components/dashboard/MyDashboardPage.tsx index 290bc34..a45e28f 100644 --- a/src/components/dashboard/MyDashboardPage.tsx +++ b/src/components/dashboard/MyDashboardPage.tsx @@ -416,7 +416,6 @@ export default function MyDashboardPage(props: Props) { if (customizeMode() && !visibleWidgets().has(key)) return null; return (
No content available.
} > -