Hide Page Number on Website Until Data Exceeds Records Limit.

This commit is contained in:
Umesh Desai 2025-06-06 16:51:40 +05:30
parent 655db6ac74
commit 24aca175f4

View File

@ -33,7 +33,7 @@ const Attendance = ({ attendance, getRole, handleModalData }) => {
const { currentPage, totalPages, currentItems, paginate } = usePagination(
filteredData,
10
20
);
return (
<>
@ -130,7 +130,7 @@ const Attendance = ({ attendance, getRole, handleModalData }) => {
</tbody>
</table>
{!loading && (
{!loading>20 && (
<nav aria-label="Page ">
<ul className="pagination pagination-sm justify-content-end py-1">
<li