From 58074a0afb426a35231a890cfcb6c4abf24e0f41 Mon Sep 17 00:00:00 2001 From: Tony James Date: Sun, 31 May 2026 21:58:39 +0100 Subject: [PATCH] fix(types): allow style prop on IconComponent --- client/src/pages/TeslaTripPlanner.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/pages/TeslaTripPlanner.tsx b/client/src/pages/TeslaTripPlanner.tsx index 23db5b1..530b941 100644 --- a/client/src/pages/TeslaTripPlanner.tsx +++ b/client/src/pages/TeslaTripPlanner.tsx @@ -245,7 +245,7 @@ const AMENITY_ICONS: Record = { }; // ─── Stop meta (icon + accent colour per type) ─────────────────────────────── -type IconComponent = React.ComponentType<{ className?: string; size?: number | string }>; +type IconComponent = React.ComponentType<{ className?: string; size?: number | string; style?: React.CSSProperties }>; function stopMeta(type: StopType): { icon: IconComponent; color: string } { switch (type) { case 'origin': return { icon: HomeIcon, color: '#9ca3af' };