update "Not Data Found" message to "No Data Found" with improved styling
This commit is contained in:
parent
cee8f23fd9
commit
085176c593
@ -325,7 +325,7 @@ const EmployeeList = () =>
|
|||||||
<p>Loading...</p>
|
<p>Loading...</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>}
|
</tr>}
|
||||||
{( !loading && employeeList?.length === 0 ) && <td colSpan={8}>Not Data Found </td>}
|
{!loading && employeeList?.length === 0 && (<td colSpan={8} style={{ paddingTop: '20px', textAlign: 'center' }}>No Data Found</td> )}
|
||||||
{( !loading && employeeList && currentItems.length === 0 && employeeList.length !==0 ) && <td colSpan={8}><small className="muted">'{searchText}' employee not found</small> </td>}
|
{( !loading && employeeList && currentItems.length === 0 && employeeList.length !==0 ) && <td colSpan={8}><small className="muted">'{searchText}' employee not found</small> </td>}
|
||||||
|
|
||||||
{(currentItems && !loading) && currentItems.sort((a, b) => b.id - a.id).map((item) => (
|
{(currentItems && !loading) && currentItems.sort((a, b) => b.id - a.id).map((item) => (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user