Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
bugfix(images): temporary revert to basic img element to see if that …
Browse files Browse the repository at this point in the history
…fixes anything; (#4660)

Co-authored-by: VWSCoronaDashboard26 <[email protected]>
(cherry picked from commit 730f510)
  • Loading branch information
VWSCoronaDashboard26 authored and Jorrik-Klijnsma-Work committed Feb 23, 2023
1 parent a91c90b commit b7f8516
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/app/src/components/article-teaser.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable */
import css from '@styled-system/css';
import { ReactNode } from 'react';
import styled from 'styled-components';
Expand All @@ -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<Article, 'title' | 'slug' | 'summary' | 'cover' | 'category' | 'categories'>;

Expand All @@ -24,12 +26,15 @@ export function ArticleTeaser(props: ArticleTeaserProps) {
const { title, slug, summary, cover, coverSizes } = props;
const { commonTexts } = useIntl();

const { src } = getImageProps(cover, {});

return (
<Link passHref href={`/artikelen/${slug}`}>
<StyledArticleTeaser>
{cover.asset && (
<ZoomContainer height="200px">
<BackgroundImage image={cover} height="200px" sizes={coverSizes} />
{/* <BackgroundImage image={cover} height="200px" sizes={coverSizes} /> */}
<img src={src} />
</ZoomContainer>
)}

Expand Down

0 comments on commit b7f8516

Please sign in to comment.