mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 06:58:19 +02:00
Merge pull request #2 from R0m1k3/1.1
Improve reconciliation page with default 20 lines and dual pagination…
This commit is contained in:
1 file changed
+15
-3
@@ -543,7 +543,7 @@ export default function BLReconciliation() {
|
|||||||
totalPages,
|
totalPages,
|
||||||
paginatedData: paginatedDeliveries,
|
paginatedData: paginatedDeliveries,
|
||||||
totalItems
|
totalItems
|
||||||
} = usePagination(filteredDeliveries, 10);
|
} = usePagination(filteredDeliveries, 20);
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
@@ -657,6 +657,18 @@ export default function BLReconciliation() {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="bg-white border border-gray-200 shadow-lg overflow-hidden">
|
<div className="bg-white border border-gray-200 shadow-lg overflow-hidden">
|
||||||
|
{/* Pagination en haut */}
|
||||||
|
{totalItems > 0 && (
|
||||||
|
<Pagination
|
||||||
|
currentPage={currentPage}
|
||||||
|
totalPages={totalPages}
|
||||||
|
totalItems={totalItems}
|
||||||
|
itemsPerPage={itemsPerPage}
|
||||||
|
onPageChange={setCurrentPage}
|
||||||
|
onItemsPerPageChange={setItemsPerPage}
|
||||||
|
className="px-4 py-3 border-b border-gray-200"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
<div className="overflow-x-auto">
|
<div className="overflow-x-auto">
|
||||||
<table className="min-w-full divide-y divide-gray-200">
|
<table className="min-w-full divide-y divide-gray-200">
|
||||||
<thead className="bg-gray-50 border-b border-gray-200">
|
<thead className="bg-gray-50 border-b border-gray-200">
|
||||||
@@ -868,7 +880,7 @@ export default function BLReconciliation() {
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Pagination */}
|
{/* Pagination en bas */}
|
||||||
{totalItems > 0 && (
|
{totalItems > 0 && (
|
||||||
<Pagination
|
<Pagination
|
||||||
currentPage={currentPage}
|
currentPage={currentPage}
|
||||||
@@ -877,7 +889,7 @@ export default function BLReconciliation() {
|
|||||||
itemsPerPage={itemsPerPage}
|
itemsPerPage={itemsPerPage}
|
||||||
onPageChange={setCurrentPage}
|
onPageChange={setCurrentPage}
|
||||||
onItemsPerPageChange={setItemsPerPage}
|
onItemsPerPageChange={setItemsPerPage}
|
||||||
className="mt-4 border-t border-gray-200 pt-4"
|
className="px-4 py-3 border-t border-gray-200 bg-gray-50"
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in new issue
Block a user