From 1f8f50d0192ffdab04d8e6ee7b770ba824dac602 Mon Sep 17 00:00:00 2001 From: alorig <220087330+alorig@users.noreply.github.com> Date: Sun, 9 Nov 2025 22:32:29 +0500 Subject: [PATCH] Update lazy.ts --- frontend/src/icons/lazy.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }