only display pagination if have data greather than 5
This commit is contained in:
parent
8696070249
commit
7ef148ac32
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user