mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-04-18 07:12:18 +00:00
changes
This commit is contained in:
parent
6331c43f68
commit
2c524020af
1 changed files with 9 additions and 8 deletions
|
|
@ -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 (
|
||||
<>
|
||||
|
|
|
|||
Loading…
Reference in a new issue