diff --git a/src/pages/TopFlix.tsx b/src/pages/TopFlix.tsx index ed0edfd2..5167e63a 100644 --- a/src/pages/TopFlix.tsx +++ b/src/pages/TopFlix.tsx @@ -114,8 +114,7 @@ export function TopFlix() { const [loading, setLoading] = useState(true); const [currentPage, setCurrentPage] = useState(1); const itemsPerPage = 12; - const maxItemsToShow = 120; // Maximum items to show - const maxPageCount = Math.ceil(maxItemsToShow / itemsPerPage); // Calculate max page count based on maxItemsToShow + const maxItemsToShow = 12; // Maximum items to show useEffect(() => { getRecentPlayedItems() @@ -171,14 +170,13 @@ export function TopFlix() { the current backend deployment.
-
+

Overall Views: {totalViews}

- {getItemsForCurrentPage().map((item) => { const tmdbId = item.tmdbFullId.split("-")[1]; @@ -190,35 +188,13 @@ export function TopFlix() { title: item.title, type, poster, - year: 2009, + // year: 420, }; return ; })}
-
- -
- {currentPage} / {maxPageCount} -
- -
);