fix(types): allow style prop on IconComponent
This commit is contained in:
@@ -245,7 +245,7 @@ const AMENITY_ICONS: Record<string, string> = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// ─── Stop meta (icon + accent colour per type) ───────────────────────────────
|
// ─── 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 } {
|
function stopMeta(type: StopType): { icon: IconComponent; color: string } {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case 'origin': return { icon: HomeIcon, color: '#9ca3af' };
|
case 'origin': return { icon: HomeIcon, color: '#9ca3af' };
|
||||||
|
|||||||
Reference in New Issue
Block a user