modal showing for each movie

Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
haraldnilsen 2023-09-05 15:54:36 +02:00
parent 882df70ce5
commit 431e1bd472
6 changed files with 92 additions and 17 deletions

View file

@ -22,7 +22,6 @@ const Pagination: React.FC<PaginationProps> = ({
setShowLeftDots(currentPage > 4 ? true : false)
setShowRightDots(currentPage < totalPages - 3 ? true : false)
}
console.log('hei')
if (!showLeftDots && !showRightDots) {
setShowingNumbers(Array.from(Array(totalPages).keys()))
}
@ -60,7 +59,7 @@ const Pagination: React.FC<PaginationProps> = ({
)}
{showingNumbers.map((page) => (
<q.div>
<q.div key={page}>
<PaginationButton
pageNumber={page}
handlePageChange={handlePageChange}