feat: favorite & watch lists

This commit is contained in:
ner committed 2024-10-19 16:09:15 +03:00
1 parent 960a7a6242
commit 8858e47d38
51 files changed
+561 -290

No files matched your search

@@ -3,8 +3,8 @@
import { FC, ForwardedRef, forwardRef, useLayoutEffect, useRef } from 'react';
import { Virtuoso, VirtuosoProps } from 'react-virtuoso';
import Poster from '@/components/Poster';
import ScrollNavigation from '@/components/ScrollNavigation';
import Card from '@/components/Show';
import { cn } from '@/lib/utils';
const components: VirtuosoProps<Show, (index: number) => void>['components'] = {
@@ -36,7 +36,7 @@ const components: VirtuosoProps<Show, (index: number) => void>['components'] = {
return (
<div {...props} ref={ref} className='snap-start'>
<Card show={item} />
<Poster show={item} />
</div>
);
},
+1 -1
View File
@@ -12,7 +12,7 @@ const Random = () => {
<Preview
show={movie}
className='rounded-md bg-background'
card={<Carousel index={index} shows={movies} onIndexChange={onIndexChange} onEndReached={fetchNextPage} />}
poster={<Carousel index={index} shows={movies} onIndexChange={onIndexChange} onEndReached={fetchNextPage} />}
/>
);
};