fix(explore): resolve TSX JSX component return type error
All checks were successful
build-and-release / build (push) Successful in 1m48s

card.Icon typed as (props) => JSX.Element instead of unknown to
satisfy SolidJS JSX component constraint.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tracewebstudio Dev 2026-08-13 21:48:42 +02:00
parent 84fbfc1d73
commit f35e76802e

View file

@ -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";
};