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