diff --git a/packages/next-templates/src/app/card-component/card/page.tsx b/packages/next-templates/src/app/card-component/card/page.tsx index 5c9c17e5f..76eac1a2c 100644 --- a/packages/next-templates/src/app/card-component/card/page.tsx +++ b/packages/next-templates/src/app/card-component/card/page.tsx @@ -11,13 +11,9 @@ interface CardListItemProps extends Omit, 'childre title?: string; preHeading?: string; children?: string; - image?: { - url: string; - alt: string; - }; - link: { - href: string; - }; + imageSrc?: string; + imageAlt?: string; + href?: string; // do we want an article around the card content. Default is no useArticle?: boolean | false; @@ -28,8 +24,9 @@ export const CardListItem: FC = ({ children, title, preHeading, - image, - link: { href }, + imageSrc, + imageAlt, + href, // expect a useArticle parameter given useArticle, ...props @@ -38,8 +35,8 @@ export const CardListItem: FC = ({ return (
  • linkRef.current?.click()}> - {image && ( - {image.alt} + {imageSrc && imageAlt && ( + {imageAlt} )} {/* is we want a useArticle then add an article*/} {useArticle ? ( @@ -78,8 +75,9 @@ export default function Home() { test test test test test test test test test test test test test test test test