Skip to content

Commit

Permalink
test: modify storybook to show hero image in carousel
Browse files Browse the repository at this point in the history
  • Loading branch information
gidjin committed Jan 9, 2023
1 parent 779ad72 commit ba70a39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/NewsCarousel/NewsCarousel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const mockArticles: ArticleListItemRecord[] = [
],
publishedDate: 'Aug 03, 2022',
preview: "It's a thing",
hero: { url: '/assets/images/hero.jpeg' },
},
{
id: '2',
Expand Down
8 changes: 8 additions & 0 deletions src/components/NewsCarouselItem/NewsCarouselItem.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,11 @@ const mockArticle: ArticleListItemRecord = {
export const DefaultNewsCarouselItem = () => (
<NewsCarouselItem article={mockArticle} />
)

const articleWithHero = {
...mockArticle,
hero: { url: '/assets/images/hero.jpeg' },
}
export const NewsCarouselItemWithHero = () => (
<NewsCarouselItem article={articleWithHero} />
)

0 comments on commit ba70a39

Please sign in to comment.