nextjs-pagination
Advanced tools
Comparing version 2.2.0 to 2.3.0
{ | ||
"name": "nextjs-pagination", | ||
"version": "2.2.0", | ||
"version": "2.3.0", | ||
"description": "A customizable pagination component for Next.js", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -39,3 +39,3 @@ # Nextjs-Pagination | ||
<Pagination | ||
onPageChange={(page: number) => setCurrentPage(page)} | ||
onPageChange={setCurrentPage} | ||
totalItems={100} | ||
@@ -52,3 +52,3 @@ itemsPerPage={10} | ||
<Pagination | ||
onPageChange={(page) => setCurrentPage(page)} | ||
onPageChange={setCurrentPage} | ||
totalItems={100} | ||
@@ -106,14 +106,14 @@ itemsPerPage={10} | ||
return ( | ||
<Pagination | ||
totalItems={500} | ||
itemsPerPage={20} | ||
onPageChange={(page: number) => setCurrentPage(page)} | ||
color="green" | ||
shape="circle" | ||
buttonCount={7} | ||
showNextPrev={true} | ||
showFirstLast={true} | ||
onSuccess={(page) => console.log("Current page: ", page)} | ||
onError={(error) => console.error(error)} | ||
/> | ||
<Pagination | ||
totalItems={500} | ||
itemsPerPage={20} | ||
onPageChange={setCurrentPage} | ||
color="green" | ||
shape="circle" | ||
buttonCount={7} | ||
showNextPrev={true} | ||
showFirstLast={true} | ||
onSuccess={(page: any) => console.log("Current page: ", page)} | ||
onError={(error: any) => console.error(error)} | ||
/> | ||
); | ||
@@ -135,3 +135,3 @@ ``` | ||
itemsPerPage={20} | ||
onPageChange={(page) => setCurrentPage(page)} | ||
onPageChange={setCurrentPage} | ||
color="green" | ||
@@ -138,0 +138,0 @@ shape="circle" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20904