update "Not Data Found" message to "No Data Found" with improved styling

This commit is contained in:
Vaibhav Surve 2025-04-08 11:50:41 +05:30
parent d35f6e1c89
commit d3263a9d65

View File

@ -325,7 +325,7 @@ const EmployeeList = () =>
<p>Loading...</p>
</td>
</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>}
{(currentItems && !loading) && currentItems.sort((a, b) => b.id - a.id).map((item) => (