diff --git a/src/pages/employee/EmployeeList.jsx b/src/pages/employee/EmployeeList.jsx index 73ef5901..02ae3acd 100644 --- a/src/pages/employee/EmployeeList.jsx +++ b/src/pages/employee/EmployeeList.jsx @@ -51,7 +51,8 @@ const EmployeeList = () => { const { employees, loading, setLoading, error, recallEmployeeData } = useEmployeesAllOrByProjectId( - showAllEmployees ,selectedProjectId, + showAllEmployees, + selectedProjectId, showInactive ); @@ -153,8 +154,6 @@ const EmployeeList = () => { } }; - - const handleAllEmployeesToggle = (e) => { const isChecked = e.target.checked; setShowInactive(false); @@ -295,450 +294,449 @@ const EmployeeList = () => { {ViewTeamMember ? ( //
-
-
-
-
- {/* Switches: All Employees + Inactive */} -
- {/* All Employees Switch */} - {ViewAllEmployee && ( -
- - -
- )} - - {/* Show Inactive Employees Switch */} - {showAllEmployees && ( -
- setShowInactive(e.target.checked)} - /> - -
- )} -
- - {/* Right side: Search + Export + Add Employee */} -
- {/* Search Input - ALWAYS ENABLED */} -
-
+
) : ( + //