From f35e76802e8a1b057465dac4d49758435fc78586 Mon Sep 17 00:00:00 2001 From: Tracewebstudio Dev Date: Thu, 13 Aug 2026 21:48:42 +0200 Subject: [PATCH] fix(explore): resolve TSX JSX component return type error card.Icon typed as (props) => JSX.Element instead of unknown to satisfy SolidJS JSX component constraint. Co-Authored-By: Claude Sonnet 4.6 --- src/components/dashboard/ExploreServicesPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/dashboard/ExploreServicesPage.tsx b/src/components/dashboard/ExploreServicesPage.tsx index bc4e6b0..99e7b74 100644 --- a/src/components/dashboard/ExploreServicesPage.tsx +++ b/src/components/dashboard/ExploreServicesPage.tsx @@ -1,4 +1,4 @@ -import { For, Show, createMemo, createSignal, onMount } from "solid-js"; +import { For, Show, createMemo, createSignal, onMount, type JSX } from "solid-js"; import { ArrowLeft, Camera, Scissors, GraduationCap, Code2, Clapperboard, PenTool, Megaphone, Dumbbell, UtensilsCrossed, Globe, Users, UserCircle, FileText, TrendingUp, Award, BarChart3, ShieldCheck } from "lucide-solid"; import { BTN_GHOST, CARD } from "~/components/DashboardShell"; import RoleWizard from "~/components/dashboard/RoleWizard"; @@ -34,7 +34,7 @@ type RoleCard = { subtitle: string; /** "Register" | "Switch" | "Current Role" | "Under Review" */ action: string; - Icon: (props: { size: number; color: string; strokeWidth: number }) => unknown; + Icon: (props: { size?: number; color?: string; strokeWidth?: number; style?: string }) => JSX.Element; status: "Active" | "Pending" | "Registered" | "Available"; };