diff --git a/src/components/AddFacilitator.tsx b/src/components/AddFacilitator.tsx index 4045553f..0ecf74a7 100644 --- a/src/components/AddFacilitator.tsx +++ b/src/components/AddFacilitator.tsx @@ -170,7 +170,7 @@ const AddFacilitatorModal: React.FC = ({ if (typeof window !== "undefined" && window.localStorage) { const CenterList = localStorage.getItem("CenterList"); const centerOptions = CenterList ? JSON.parse(CenterList) : []; - var centerOptionsList = centerOptions.map( + var centerOptionsList = centerOptions?.map( (center: { cohortId: string; cohortName: string }) => ({ value: center.cohortId, label: center.cohortName, diff --git a/src/components/SimpleModal.tsx b/src/components/SimpleModal.tsx index e5709beb..923f355a 100644 --- a/src/components/SimpleModal.tsx +++ b/src/components/SimpleModal.tsx @@ -51,7 +51,7 @@ const SimpleModal: React.FC = ({ top: '50%', left: '50%', transform: 'translate(-50%, -50%)', - width: isSmallScreen ? '90%' : isLargeScreen ? '55%' : '85%', + width: isSmallScreen ? '90%' : isLargeScreen ? '65%' : '85%', maxHeight: '80vh', overflowY: 'auto', backgroundColor: '#fff', diff --git a/src/components/UserTable.tsx b/src/components/UserTable.tsx index 725e84f0..71c079fc 100644 --- a/src/components/UserTable.tsx +++ b/src/components/UserTable.tsx @@ -18,7 +18,7 @@ import Loader from "../components/Loader"; import { deleteUser } from "../services/DeleteUser"; import { getCohortList } from "../services/GetCohortList"; import { userList } from "../services/UserList"; - +import PersonSearchIcon from '@mui/icons-material/PersonSearch'; type UserDetails = { userId: any; username: any; @@ -516,8 +516,9 @@ const UserTable: React.FC = ({ role , userType, searchPlaceholde ) : ( loading === false && data.length === 0 && ( - - + + {/* */} + {t("COMMON.NO_USER_FOUND")} diff --git a/src/components/layouts/header/Profile.tsx b/src/components/layouts/header/Profile.tsx index 764e1886..443e3bbd 100644 --- a/src/components/layouts/header/Profile.tsx +++ b/src/components/layouts/header/Profile.tsx @@ -82,7 +82,7 @@ const Profile = () => { whiteSpace: "nowrap", }} > - {userName ? userName : ""} + {userName ? userName.charAt(0).toUpperCase() +userName.slice(1).toLowerCase() : ""} @@ -107,7 +107,7 @@ const Profile = () => { aria-label="secondary mailbox folder" onClick={handleClose4} > - + {/* @@ -115,7 +115,7 @@ const Profile = () => { - + */}