fix: display pages when more than one

This commit is contained in:
2025-08-29 14:45:48 +04:00
parent 50d4705c5e
commit 8b06d08664

View File

@ -59,14 +59,16 @@ const DealsTable = () => {
} as MRT_TableOptions<DealSchema>
}
/>
<Group justify={"flex-end"}>
<Pagination
withEdges
total={paginationInfo.totalPages}
value={page}
onChange={setPage}
/>
</Group>
{paginationInfo.totalPages > 1 && (
<Group justify={"flex-end"}>
<Pagination
withEdges
total={paginationInfo.totalPages}
value={page}
onChange={setPage}
/>
</Group>
)}
</Stack>
);
};