mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-03-11 17:45:38 +00:00
addonId for hero section type carousel
This commit is contained in:
parent
9e5877173e
commit
9012bfdea9
1 changed files with 4 additions and 4 deletions
|
|
@ -228,9 +228,9 @@ const HeroCarousel: React.FC<HeroCarouselProps> = ({ items, loading = false }) =
|
|||
|
||||
const contentPadding = useMemo(() => ({ paddingHorizontal: (windowWidth - cardWidth) / 2 }), [windowWidth, cardWidth]);
|
||||
|
||||
const handleNavigateToMetadata = useCallback((id: string, type: any) => {
|
||||
navigation.navigate('Metadata', { id, type });
|
||||
}, [navigation]);
|
||||
const handleNavigateToMetadata = useCallback((id: string, type: any, addonId?: string) => {
|
||||
navigation.navigate('Metadata', { id, type, addonId });
|
||||
}, [navigation]);
|
||||
|
||||
// Container animation based on scroll - must be before early returns
|
||||
// TEMPORARILY DISABLED FOR PERFORMANCE TESTING
|
||||
|
|
@ -399,7 +399,7 @@ const HeroCarousel: React.FC<HeroCarouselProps> = ({ items, loading = false }) =
|
|||
colors={currentTheme.colors}
|
||||
logoFailed={failedLogoIds.has(item.id)}
|
||||
onLogoError={() => setFailedLogoIds((prev) => new Set(prev).add(item.id))}
|
||||
onPressInfo={() => handleNavigateToMetadata(item.id, item.type)}
|
||||
onPressInfo={() => handleNavigateToMetadata(item.id, item.type, item.addonId)}
|
||||
scrollX={scrollX}
|
||||
index={index}
|
||||
flipped={!!flippedMap[item.id]}
|
||||
|
|
|
|||
Loading…
Reference in a new issue