diff --git a/src/components/AskAsh/index.ts b/src/components/AskAsh/index.ts index 7641131..847b02e 100644 --- a/src/components/AskAsh/index.ts +++ b/src/components/AskAsh/index.ts @@ -12,7 +12,7 @@ export { generateContent, purchaseCredits, CREDIT_COSTS, -} from '../hooks/useAiCredits'; +} from '~/hooks/useAiCredits'; // Types export type { @@ -22,4 +22,4 @@ export type { PurchaseRequest, PurchaseResponse, ApiError, -} from '../hooks/useAiCredits'; +} from '~/hooks/useAiCredits'; diff --git a/src/components/DashboardLayout.tsx b/src/components/DashboardLayout.tsx index 19078eb..2d3c528 100644 --- a/src/components/DashboardLayout.tsx +++ b/src/components/DashboardLayout.tsx @@ -65,7 +65,7 @@ export default function DashboardLayout(props: ParentProps) { return; } - const storageKeys = [ + const storageKeys: [string, Storage][] = [ ["nxtgauge_signup_profile_v1", localStorage], ["nxtgauge_auth_user", localStorage], ["nxtgauge_user", localStorage], diff --git a/src/components/admin/AiCreditsAdmin.tsx b/src/components/admin/AiCreditsAdmin.tsx index dacdca4..6128626 100644 --- a/src/components/admin/AiCreditsAdmin.tsx +++ b/src/components/admin/AiCreditsAdmin.tsx @@ -477,7 +477,7 @@ export default function AiCreditsAdmin() { setLedgerPage(p => p + 1); handleFetchLedger(); }} - disabled={ledgerData()?.data.length === 0 || ledgerData()?.data.length < 20} + disabled={ledgerData()?.data.length === 0 || (ledgerData()?.data.length ?? 0) < 20} style={{ padding: '8px 16px', border: '1px solid #D1D5DB', diff --git a/src/components/admin/DashboardDesignPreview.tsx b/src/components/admin/DashboardDesignPreview.tsx index 4520121..4b309dd 100644 --- a/src/components/admin/DashboardDesignPreview.tsx +++ b/src/components/admin/DashboardDesignPreview.tsx @@ -5599,7 +5599,7 @@ export default function DashboardDesignPreview(props: {
({})); 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.
} > -