diff --git a/packages/app/src/components/article-teaser.tsx b/packages/app/src/components/article-teaser.tsx index 16e95e1ce5..f0a7bf5c5d 100644 --- a/packages/app/src/components/article-teaser.tsx +++ b/packages/app/src/components/article-teaser.tsx @@ -1,3 +1,4 @@ +/* eslint-disable */ import css from '@styled-system/css'; import { ReactNode } from 'react'; import styled from 'styled-components'; @@ -9,6 +10,7 @@ import { Link } from '~/utils/link'; import { BackgroundImage } from './background-image'; import { Box } from './base'; import { Anchor, Heading, Text, BoldText } from './typography'; +import { getImageProps } from '~/lib/sanity'; export type ArticleSummary = Pick; @@ -24,12 +26,15 @@ export function ArticleTeaser(props: ArticleTeaserProps) { const { title, slug, summary, cover, coverSizes } = props; const { commonTexts } = useIntl(); + const { src } = getImageProps(cover, {}); + return ( {cover.asset && ( - + {/* */} + )}