From 77909515dfbfbab9e73b1d09d0828921d07a6b12 Mon Sep 17 00:00:00 2001 From: Mika Munterud Date: Mon, 26 Feb 2024 16:30:01 +0100 Subject: [PATCH] DIGG-280-beta:Removing console.logs from Custom images --- components/global/CustomImage/index.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/global/CustomImage/index.tsx b/components/global/CustomImage/index.tsx index a8912f2a..b463ad3a 100644 --- a/components/global/CustomImage/index.tsx +++ b/components/global/CustomImage/index.tsx @@ -57,12 +57,6 @@ export const CustomImage: FC = ({ ? 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(", "); @@ -76,6 +70,8 @@ export const CustomImage: FC = ({ width={image.width || ""} height={image.height || ""} alt={image.alt || ""} + /* @ts-ignore */ + fetchpriority="high" /> );