This commit is contained in:
tapframe 2025-11-08 03:05:09 +05:30
parent 6331c43f68
commit 2c524020af

View file

@ -631,14 +631,8 @@ const HomeScreen = () => {
const memoizedFeaturedContent = useMemo(() => {
const heroStyleToUse = settings.heroStyle;
if (heroStyleToUse === 'carousel') {
return (
<HeroCarousel
items={allFeaturedContent || (featuredContent ? [featuredContent] : [])}
loading={featuredLoading}
/>
);
} else if (heroStyleToUse === 'appletv') {
// AppleTVHero is only available on mobile devices (not tablets)
if (heroStyleToUse === 'appletv' && !isTablet) {
return (
<AppleTVHero
featuredContent={featuredContent || null}
@ -646,6 +640,13 @@ const HomeScreen = () => {
loading={featuredLoading}
/>
);
} else if (heroStyleToUse === 'carousel') {
return (
<HeroCarousel
items={allFeaturedContent || (featuredContent ? [featuredContent] : [])}
loading={featuredLoading}
/>
);
} else {
return (
<>