diff --git a/frontend/src/icons/lazy.ts b/frontend/src/icons/lazy.ts index 72daba2c..f49c8a71 100644 --- a/frontend/src/icons/lazy.ts +++ b/frontend/src/icons/lazy.ts @@ -9,7 +9,7 @@ * const PlusIcon = lazyIcon('plus'); */ -import { lazy, ComponentType } from 'react'; +import React, { lazy, ComponentType } from 'react'; // Icon name to component mapping const iconMap: Record Promise<{ default: ComponentType }>> = { @@ -81,7 +81,7 @@ export function lazyIcon(iconName: string): ComponentType { if (!loader) { console.warn(`Icon "${iconName}" not found. Available icons: ${Object.keys(iconMap).join(', ')}`); // Return a placeholder component - return () => ?; + return () => React.createElement('span', null, '?'); } return lazy(loader); }