From c80d9a853a2a3451293a5382ef183c18add0c040 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Wed, 24 Jul 2024 20:10:31 +0200 Subject: [PATCH] fix: remove protocol-relative URLs from next/image (#889) Next.js image component doesn't support protocol-relative URLs, so this PR replaces them to https URLs --- .../Discover/DiscoverNetwork/index.tsx | 2 +- .../Discover/DiscoverStudio/index.tsx | 2 +- .../MediaSlider/ShowMoreCard/index.tsx | 38 ++++++++++--------- 3 files changed, 23 insertions(+), 19 deletions(-) diff --git a/src/components/Discover/DiscoverNetwork/index.tsx b/src/components/Discover/DiscoverNetwork/index.tsx index 2721f9496..af3f9ed57 100644 --- a/src/components/Discover/DiscoverNetwork/index.tsx +++ b/src/components/Discover/DiscoverNetwork/index.tsx @@ -50,7 +50,7 @@ const DiscoverTvNetwork = () => { {firstResultData?.network.logoPath ? (
{firstResultData.network.name} { {firstResultData?.studio.logoPath ? (
{firstResultData.studio.name} { >
-
+
{posters[0] && ( -
+
)} {posters[1] && ( -
+
)} {posters[2] && ( -
+
)} {posters[3] && ( -
+
)}