return one more params
This commit is contained in:
parent
664fe2473f
commit
1b5fa173f0
@ -14,7 +14,7 @@ const usePagination = (data, itemsPerPage) => {
|
||||
setCurrentPage(pageNumber);
|
||||
};
|
||||
|
||||
return { currentPage, totalPages, currentItems, paginate };
|
||||
return { currentPage, totalPages, currentItems, paginate,setCurrentPage };
|
||||
};
|
||||
|
||||
export default usePagination;
|
||||
|
Loading…
x
Reference in New Issue
Block a user