diff --git a/website/components/io-card-container/index.tsx b/website/components/io-card-container/index.tsx index 07bef83c318..420d1cee112 100644 --- a/website/components/io-card-container/index.tsx +++ b/website/components/io-card-container/index.tsx @@ -34,42 +34,46 @@ export default function IoCardContaianer({ {description ?

{description}

: null} ) : null} - {label || cta ? ( -
- {label ?

{label}

: null} - {cta ? ( -
) : null} - + + ) : null} - ) } diff --git a/website/components/io-usecase-sections/index.tsx b/website/components/io-usecase-section/index.tsx similarity index 66% rename from website/components/io-usecase-sections/index.tsx rename to website/components/io-usecase-section/index.tsx index f810cacd7c1..a8583d41afa 100644 --- a/website/components/io-usecase-sections/index.tsx +++ b/website/components/io-usecase-section/index.tsx @@ -5,31 +5,11 @@ import Image from 'next/image' import Button from '@hashicorp/react-button' import s from './style.module.css' -interface IoUsecaseSectionsProps { - brand?: Products | 'neutral' - sections: [IoUsecaseSectionProps, IoUsecaseSectionProps] -} - -export default function IoUseCaseSestions({ - brand = 'neutral', - sections, -}: IoUsecaseSectionsProps): React.ReactElement { - return ( - <> - {sections.map((section, index) => { - // Index is stable - // eslint-disable-next-line react/no-array-index-key - return - })} - - ) -} - interface IoUsecaseSectionProps { brand?: Products | 'neutral' eyebrow: string heading: string - description: React.ReactNode + description: string media?: { src: string width: string @@ -42,7 +22,7 @@ interface IoUsecaseSectionProps { } } -function IoUsecaseSection({ +export default function IoUsecaseSection({ brand = 'neutral', eyebrow, heading, @@ -57,7 +37,14 @@ function IoUsecaseSection({

{heading}

- {media ?

{description}

: null} + {media?.src ? ( +
+ ) : null} {cta ? (