Skip to content

Commit

Permalink
just use regular img for now
Browse files Browse the repository at this point in the history
  • Loading branch information
mimecuvalo committed Nov 28, 2023
1 parent 94e9431 commit aab7404
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions components/ContentThumb.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { Link, Dialog, styled, IconButton, useTheme } from 'components';
import { THUMB_HEIGHT, THUMB_WIDTH } from 'util/constants';
import { constructNextImageURL, contentUrl } from 'util/url-factory';
import { contentUrl } from 'util/url-factory';
import { defineMessages, useIntl } from 'i18n';

import { Content } from 'data/graphql-generated';
import { MouseEvent, useEffect, useState } from 'react';
import { ArrowBackIosNew, ArrowForwardIos, Close } from '@mui/icons-material';
import { Backdrop } from '@mui/material';
import Header from './content/Header';
import Image from 'next/image';

const ThumbLink = styled(Link)`
width: ${THUMB_WIDTH}px;
Expand Down Expand Up @@ -75,7 +74,8 @@ export default function Thumb({
const thumb =
// TODO(mime): is loading lazy necessary here for next.js? i forget
item.thumb.startsWith('/resource') ? (
<Image
// eslint-disable-next-line
<img
loading="lazy"
src={
item.thumb
Expand All @@ -94,7 +94,8 @@ export default function Thumb({
) : (
<StyledThumb
loading="lazy"
src={item.thumb ? constructNextImageURL(item.thumb, 640 /* size */) : '/img/pixel.gif'}
// src={item.thumb ? constructNextImageURL(item.thumb, 640 /* size */) : '/img/pixel.gif'}
src={item.thumb ? item.thumb : '/img/pixel.gif'}
alt={thumbAltText}
/>
);
Expand Down

1 comment on commit aab7404

@vercel
Copy link

@vercel vercel bot commented on aab7404 Nov 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.