forked from emre/www_projectmycelium_com
refactor: remove unused imports and add icon null check
- Removed unused ShieldCheckIcon import from NodeProducts - Removed unused Small component import from NodeSpecs - Added conditional rendering for Icon in PodsWhat to prevent errors when icon is undefined
This commit is contained in:
@@ -82,7 +82,7 @@ export function PodsWhat() {
|
||||
<>
|
||||
{/* TITLE WITH ICON (matching the TL example) */}
|
||||
<dt className="flex items-center gap-x-3 text-base font-semibold text-white">
|
||||
<Icon className="h-6 w-6 text-cyan-500" aria-hidden="true" />
|
||||
{Icon && <Icon className="h-6 w-6 text-cyan-500" aria-hidden="true" />}
|
||||
{card.title}
|
||||
</dt>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user