From ba70a399b139b339fcfb7af69ae650a662b985f8 Mon Sep 17 00:00:00 2001 From: John Gedeon Date: Mon, 9 Jan 2023 14:43:13 -0800 Subject: [PATCH] test: modify storybook to show hero image in carousel --- src/components/NewsCarousel/NewsCarousel.stories.tsx | 1 + .../NewsCarouselItem/NewsCarouselItem.stories.tsx | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/src/components/NewsCarousel/NewsCarousel.stories.tsx b/src/components/NewsCarousel/NewsCarousel.stories.tsx index cac6d7e99..37847d290 100644 --- a/src/components/NewsCarousel/NewsCarousel.stories.tsx +++ b/src/components/NewsCarousel/NewsCarousel.stories.tsx @@ -28,6 +28,7 @@ const mockArticles: ArticleListItemRecord[] = [ ], publishedDate: 'Aug 03, 2022', preview: "It's a thing", + hero: { url: '/assets/images/hero.jpeg' }, }, { id: '2', diff --git a/src/components/NewsCarouselItem/NewsCarouselItem.stories.tsx b/src/components/NewsCarouselItem/NewsCarouselItem.stories.tsx index 05af58335..18bb18c0e 100644 --- a/src/components/NewsCarouselItem/NewsCarouselItem.stories.tsx +++ b/src/components/NewsCarouselItem/NewsCarouselItem.stories.tsx @@ -33,3 +33,11 @@ const mockArticle: ArticleListItemRecord = { export const DefaultNewsCarouselItem = () => ( ) + +const articleWithHero = { + ...mockArticle, + hero: { url: '/assets/images/hero.jpeg' }, +} +export const NewsCarouselItemWithHero = () => ( + +)