Remove Extra Line Below "No Contact Found" Message in Directory #400
@ -103,7 +103,7 @@ const ListViewContact = ({ data, Pagination }) => {
|
|||||||
id="horizontal-example"
|
id="horizontal-example"
|
||||||
>
|
>
|
||||||
<div className="dataTables_wrapper no-footer ">
|
<div className="dataTables_wrapper no-footer ">
|
||||||
<table className="table border-top dataTable text-nowrap">
|
<table className="table dataTable text-nowrap">
|
||||||
<thead>
|
<thead>
|
||||||
<tr className="shadow-sm ">
|
<tr className="shadow-sm ">
|
||||||
{contactList?.map((col) => (
|
{contactList?.map((col) => (
|
||||||
@ -164,7 +164,7 @@ const ListViewContact = ({ data, Pagination }) => {
|
|||||||
isPending && activeContact === row.id
|
isPending && activeContact === row.id
|
||||||
? "bx-loader-alt bx-spin"
|
? "bx-loader-alt bx-spin"
|
||||||
: "bx-recycle"
|
: "bx-recycle"
|
||||||
} me-1 text-primary cursor-pointer`}
|
} me-1 text-primary cursor-pointer`}
|
||||||
title="Restore"
|
title="Restore"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setActiveContact(row.id);
|
setActiveContact(row.id);
|
||||||
@ -176,19 +176,20 @@ const ListViewContact = ({ data, Pagination }) => {
|
|||||||
</tr>
|
</tr>
|
||||||
))
|
))
|
||||||
) : (
|
) : (
|
||||||
<tr>
|
<tr style={{ height: "200px" }}>
|
||||||
<td
|
<td
|
||||||
colSpan={contactList.length + 1}
|
colSpan={contactList.length + 1}
|
||||||
className="text-center"
|
className="text-center align-middle"
|
||||||
>
|
>
|
||||||
No contacts found
|
No contacts found
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
{Pagination && (
|
{Pagination && (
|
||||||
<div className="d-flex justify-content-start p-3">
|
<div className="d-flex justify-content-start">
|
||||||
{Pagination}
|
{Pagination}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user