Skip to content

Commit

Permalink
vf-171 fix omOss to work with new textpicturecard
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipSkaug committed Oct 15, 2024
1 parent 76a8061 commit 169318b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/public/OmOss/components/OmOss.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,14 @@ const OmOss = (): JSX.Element => {
er gode rollemodeller – de er Norges realfagshelter.
`}
</p>
{cards.map(({ title: cardTitle, text, image, pictureOnLeft = false }) => (
{cards.map((card, index) => (
<ImageCard
key={cardTitle}
title={cardTitle}
text={text}
imgPath={image.url}
alt={image.alt}
pictureOnLeft={pictureOnLeft}
key={card.title}
title={card.title}
text={card.text}
imgPath={card.image.url.toString()}
alt={card.image.alt}
pictureOnLeft={false}
/>
))}
<h1 className="mt-20 max-w-2xl text-gray-600 text-4xl text-center font-bold mx-3 dark:text-gray-200">
Expand Down

0 comments on commit 169318b

Please sign in to comment.