From 8949edea7edcb64546f2c8b9363120102509a2a5 Mon Sep 17 00:00:00 2001 From: Gauthier Date: Mon, 12 May 2025 21:28:12 +0200 Subject: [PATCH] fix: add missing cache for some tmdb images (#1656) This PR replaces some Images with CachedImage for missing TMDB-related images. --- src/components/Discover/DiscoverNetwork/index.tsx | 5 +++-- src/components/Discover/DiscoverStudio/index.tsx | 5 +++-- src/components/MediaSlider/ShowMoreCard/index.tsx | 14 +++++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/src/components/Discover/DiscoverNetwork/index.tsx b/src/components/Discover/DiscoverNetwork/index.tsx index 00e289305..a8f7375d8 100644 --- a/src/components/Discover/DiscoverNetwork/index.tsx +++ b/src/components/Discover/DiscoverNetwork/index.tsx @@ -1,3 +1,4 @@ +import CachedImage from '@app/components/Common/CachedImage'; import Header from '@app/components/Common/Header'; import ListView from '@app/components/Common/ListView'; import PageTitle from '@app/components/Common/PageTitle'; @@ -7,7 +8,6 @@ import Error from '@app/pages/_error'; import defineMessages from '@app/utils/defineMessages'; import type { TvNetwork } from '@server/models/common'; import type { TvResult } from '@server/models/Search'; -import Image from 'next/image'; import { useRouter } from 'next/router'; import { useIntl } from 'react-intl'; @@ -49,7 +49,8 @@ const DiscoverTvNetwork = () => {
{firstResultData?.network.logoPath ? (
- {firstResultData.network.name} {
{firstResultData?.studio.logoPath ? (
- {firstResultData.studio.name} {
{posters[0] && (
- { )} {posters[1] && (
- { )} {posters[2] && (
- { )} {posters[3] && (
-