From ededf81941851300b3c2c1f1552dcb26e83da364 Mon Sep 17 00:00:00 2001 From: Claude Code Bot Date: Wed, 1 Apr 2026 13:16:51 +0000 Subject: [PATCH] fix: resolve issue #29 - Homepage: Implement Highlight section (3Bear, drSquatch) --- .../vt-category-highlight/index.tsx | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/src/modules/home/components/vt-category-highlight/index.tsx b/src/modules/home/components/vt-category-highlight/index.tsx index 8f0fd0f..496f37d 100644 --- a/src/modules/home/components/vt-category-highlight/index.tsx +++ b/src/modules/home/components/vt-category-highlight/index.tsx @@ -34,28 +34,34 @@ export default async function VtCategoryHighlight({ } const renderTile = (tile: any, idx: number) => { - const imageEl = tile.imageSrc ? ( - {tile.label - ) : ( -
-
{tile.headingLabel}
-
{tile.descriptionLabel}
- -
- ) + if (!tile.imageSrc) { + return ( +
+ {tile.headingLabel && ( +
{tile.headingLabel}
+ )} + {tile.descriptionLabel && ( +
+ {tile.descriptionLabel} +
+ )} + {tile.buttonLabel && ( + + )} +
+ ) + } const content = (
- {imageEl} + {tile.label {tile.label && {tile.label}}
) -- 2.40.1