+ {loading && (
+
Loading...
|
-
}
- {!loading && employeeList?.length === 0 && (No Data Found | )}
- {( !loading && employeeList && currentItems.length === 0 && employeeList.length !==0 ) && '{searchText}' employee not found | }
-
- {(currentItems && !loading) && currentItems.sort((a, b) => b.id - a.id).map((item) => (
-
-
-
- |
-
-
-
- {item.phoneNumber}
-
- |
-
-
- {item.jobRole || "Not Assign Yet"}
-
- |
-
-
- {moment(item.joiningDate).format("DD-MMM-YYYY")}
- |
-
-
- Active
-
- |
- {ManageEmployee && (
-
-
-
-
-
-
- Edit
-
-
-
-
-
- |
- )}
- ) )}
-
+ )}
+ {!loading && employeeList?.length === 0 && (
+
+ No Data Found
+ |
+ )}
+ {!loading &&
+ employeeList &&
+ currentItems.length === 0 &&
+ employeeList.length !== 0 && (
+
+
+ '{searchText}' employee not found
+ {" "}
+ |
+ )}
+
+ {currentItems &&
+ !loading &&
+ currentItems
+ .sort((a, b) => b.id - a.id)
+ .map((item) => (
+
+
+
+ |
+
+ {item.email ? (
+
+
+
+ {item.email}
+
+ ) : (
+
+ NA
+
+ )}
+ |
+
+
+
+ {item.phoneNumber}
+
+ |
+
+
+
+ {item.jobRole || "Not Assign Yet"}
+
+ |
+
+
+ {moment(item.joiningDate).format("DD-MMM-YYYY")}
+ |
+
+
+ Active
+
+ |
+ {ManageEmployee && (
+
+
+
+
+
+
+ Edit
+
+
+
+
+
+ |
+ )}
+
+ ))}