only display pagination if have data greather than 5

This commit is contained in:
Pramod Mahajan 2025-05-06 22:58:27 +05:30
parent 8696070249
commit 7ef148ac32

View File

@ -211,7 +211,7 @@ const AttendancesEmployeeRecords = ({ employee }) => {
</table> </table>
) } ) }
</div> </div>
{(!loading && currentItems < 5) && ( {(!loading && data.length > 5) && (
<nav aria-label="Page "> <nav aria-label="Page ">
<ul className="pagination pagination-sm justify-content-end py-1"> <ul className="pagination pagination-sm justify-content-end py-1">
<li <li