fix(types): allow style prop on IconComponent

This commit is contained in:
2026-05-31 21:58:39 +01:00
parent 8913d2f341
commit 58074a0afb
+1 -1
View File
@@ -245,7 +245,7 @@ const AMENITY_ICONS: Record<string, string> = {
};
// ─── 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' };