diff --git a/src/components/Employee/SuspendEmp.jsx b/src/components/Employee/SuspendEmp.jsx new file mode 100644 index 00000000..a508e62c --- /dev/null +++ b/src/components/Employee/SuspendEmp.jsx @@ -0,0 +1,24 @@ +import React from 'react' + +const SuspendEmp = ({onClose}) => { + return ( +
+
+
+ +
+
Coming Soon
+
+
+
+ + ) +} + +export default SuspendEmp \ No newline at end of file diff --git a/src/components/common/Avatar.jsx b/src/components/common/Avatar.jsx index a09d97d3..900c9403 100644 --- a/src/components/common/Avatar.jsx +++ b/src/components/common/Avatar.jsx @@ -1,6 +1,6 @@ import React from "react"; -const Avatar = ({ firstName, lastName }) => { +const Avatar = ({ firstName, lastName, size='sm' }) => { function generateAvatarText(firstName, lastName) { if (!firstName) return ""; if (!lastName || lastName.trim() === "") { @@ -27,7 +27,7 @@ const Avatar = ({ firstName, lastName }) => { return ( <>
-
+
diff --git a/src/pages/employee/EmployeeList.jsx b/src/pages/employee/EmployeeList.jsx index 0e0f87a6..301e61a7 100644 --- a/src/pages/employee/EmployeeList.jsx +++ b/src/pages/employee/EmployeeList.jsx @@ -10,6 +10,7 @@ import { useProfile } from "../../hooks/useProfile"; import { hasUserPermission } from "../../utils/authUtils"; import { MANAGE_EMPLOYEES } from "../../utils/constants"; import { useHasUserPermission } from "../../hooks/useHasUserPermission"; +import SuspendEmp from "../../components/Employee/SuspendEmp"; const EmployeeList = () => { @@ -26,10 +27,11 @@ const EmployeeList = () => const [employeeList, setEmployeeList] = useState([]); const [modelConfig, setModelConfig] = useState(); const [currentPage, setCurrentPage] = useState(1); - const [itemsPerPage] = useState(5); + const [itemsPerPage] = useState(10); const [isCreateModalOpen, setIsCreateModalOpen] = useState(false); const [searchText, setSearchText] = useState(""); - const [filteredData, setFilteredData] = useState([]); + const [ filteredData, setFilteredData ] = useState( [] ); + const [showModal, setShowModal] = useState(false); const navigate = useNavigate(); const handleSearch = (e) => { @@ -74,7 +76,6 @@ const EmployeeList = () => const closeModal = () => { setIsCreateModalOpen(false); - const modalElement = document.getElementById("managerole-modal"); if (modalElement) { modalElement.classList.remove("show"); @@ -83,7 +84,9 @@ const EmployeeList = () => document.querySelector(".modal-backdrop").remove(); } }; - + const handleShow = () => setShowModal(true); + const handleClose = () => setShowModal( false ); + const handleConfigData = (config) => { setModelConfig(config); }; @@ -99,6 +102,17 @@ const EmployeeList = () => {isCreateModalOpen && ( )} + +
+ +
+
className="dropdown-item" href="#" > - - Print - - -
  • - - - Csv - -
  • -
  • - - - Excel - -
  • - -
  • - - - Pdf + {/* */} + Coming Soon
  • @@ -442,7 +429,7 @@ const EmployeeList = () => > Edit -