Skip to content

Commit

Permalink
Merge pull request #305 from diggsweden/DIGG-280-beta
Browse files Browse the repository at this point in the history
DIGG-280-beta:Removing console.logs from Custom images
  • Loading branch information
dajjen authored Feb 27, 2024
2 parents e81c698 + 7790951 commit 7b8c6bb
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions components/global/CustomImage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,6 @@ export const CustomImage: FC<CustomImageProps> = ({
? image.url
: (env("MEDIA_BASE_URL") || "") + image.url;

// eslint-disable-next-line
console.log("src", src);

// eslint-disable-next-line
console.log("src with query", `${src}?w=${image.width || 384}&q=90`);

const srcset = imageWidths
.map((w) => `${src}?w=${w}&q=${75} ${w}w`)
.join(", ");
Expand All @@ -76,6 +70,8 @@ export const CustomImage: FC<CustomImageProps> = ({
width={image.width || ""}
height={image.height || ""}
alt={image.alt || ""}
/* @ts-ignore */
fetchpriority="high"
/>
</picture>
);
Expand Down

0 comments on commit 7b8c6bb

Please sign in to comment.