diff --git a/src/pages/employee/EmployeeList.jsx b/src/pages/employee/EmployeeList.jsx index 935add9b..002c205d 100644 --- a/src/pages/employee/EmployeeList.jsx +++ b/src/pages/employee/EmployeeList.jsx @@ -511,8 +511,9 @@ const EmployeeList = () => { Status { )} {/* Conditional messages for no data or no search results */} {!loading && - displayData?.length === 0 && - searchText && - !showAllEmployees ? ( + displayData?.length === 0 && + searchText && + !showAllEmployees ? ( @@ -544,8 +545,8 @@ const EmployeeList = () => { ) : null} {!loading && - displayData?.length === 0 && - (!searchText || showAllEmployees) ? ( + displayData?.length === 0 && + (!searchText || showAllEmployees) ? ( {
- navigate(`/employee/${item.id}`) + navigate( + `/employee/${item.id}?for=attendance` + ) } className="text-heading text-truncate cursor-pointer" > @@ -637,56 +640,47 @@ const EmployeeList = () => {
- {/* View always visible */} - - {/* If ACTIVE employee */} - {item.isActive && ( + + {!item.isSystem && ( <> - - {/* Suspend only when active */} - {item.isActive && ( - - )} - - )} - - {/* If INACTIVE employee AND inactive toggle is ON */} - {!item.isActive && showInactive && ( - - )}
@@ -703,8 +697,9 @@ const EmployeeList = () => {