✨ modal showing for each movie
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
This commit is contained in:
parent
882df70ce5
commit
431e1bd472
6 changed files with 92 additions and 17 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Reference in a new issue