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}}
)