Skip to content

Commit

Permalink
Merge branch 'malj/2610-2' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
BorghildSelle committed Feb 13, 2025
2 parents 01b8a0d + 12a03ab commit cd718a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 216 deletions.
3 changes: 2 additions & 1 deletion web/core/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,7 @@ export const Carousel = forwardRef<HTMLElement, CarouselProps>(function Carousel
case 'image':
return (
<CarouselImageItem
//@ts-ignore:TOdo
key={item?.id ?? item?._key ?? `image_carousel_${sliderRef.current}_item_${i}`}
{...(item as ImageCarouselItem)}
displayMode={displayMode}
Expand All @@ -486,7 +487,7 @@ export const Carousel = forwardRef<HTMLElement, CarouselProps>(function Carousel
case 'event':
return getEventVariantBody(item as EventCardData, i)
case 'keyNumber':
return getKeyNumberVariantBody(item as KeyNumberItemData, i)
return getKeyNumberVariantBody(item as KeyNumberItemData)
case 'iframe':
return getIframeVariantBody(item as IFrameCarouselItemData, i)
}
Expand Down
8 changes: 7 additions & 1 deletion web/core/Carousel/CarouselImageItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ export const CarouselImageItem = forwardRef<HTMLLIElement, CarouselImageItemProp
return (
<ImageWithOverlay
teaserTitle={captionTeaserTitle}
//@ts-ignore:TODO
title={captionTitle as PortableTextBlock[]}
text={captionText}
image={image}
Expand All @@ -135,7 +136,12 @@ export const CarouselImageItem = forwardRef<HTMLLIElement, CarouselImageItemProp
<figcaption
className={`max-w-text py-6 px-8 ${displayMode === 'single' ? singleClassname : scrollClassname}`}
>
{caption && <Blocks value={caption} />}
{caption && (
<Blocks
//@ts-ignore:TODO
value={caption}
/>
)}
</figcaption>
</figure>
)
Expand Down
79 changes: 0 additions & 79 deletions web/pageComponents/shared/ImageCarousel/ImageCarousel.tsx

This file was deleted.

84 changes: 0 additions & 84 deletions web/pageComponents/shared/ImageCarousel/ImageCarouselItem.tsx

This file was deleted.

51 changes: 0 additions & 51 deletions web/pageComponents/shared/ImageCarousel/Navigation.tsx

This file was deleted.

0 comments on commit cd718a2

Please sign in to comment.