fix: torrent size

This commit is contained in:
ner committed 2024-03-19 20:15:42 +02:00
1 parent 8d7e2df869
commit c6d306cb7b
22 files changed
+1638 -300

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
'use client';
import List from '@/components/Movie/List';
import usePopular from './usePopular';
export default function Container() {
const { data: top, hasNextPage, fetchNextPage, isFetched } = usePopular();
return (
<>
<List pages={top?.pages || []} fetchNextPage={fetchNextPage} hasNextPage={hasNextPage} />
{isFetched && !top?.pages?.[0]?.results?.length && (
<div className='h-40 w-full flex items-center justify-center text-xl text-muted-foreground'>
Nothing was found
</div>
)}
</>
);
}