diff --git a/src/assets/images/Profile.png b/src/assets/images/Profile.png new file mode 100644 index 00000000..f69ab2b9 Binary files /dev/null and b/src/assets/images/Profile.png differ diff --git a/src/components/ManageUser.tsx b/src/components/ManageUser.tsx index ed51d1ba..58097e71 100644 --- a/src/components/ManageUser.tsx +++ b/src/components/ManageUser.tsx @@ -40,6 +40,8 @@ import { styled } from '@mui/system'; import { getMyUserList } from '@/services/MyClassDetailsService'; import DeleteUserModal from './DeleteUserModal'; +import Image from 'next/image'; +import profileALT from "../assets/images/Profile.png" interface Cohort { cohortId: string; parentId: string; @@ -499,119 +501,92 @@ const manageUsers: React.FC = ({ */} - - + + + {users && users.length !== 0 && users.map((user) => ( + + + img + + + { + handleLearnerFullProfile(user.userId!); + }} sx={{ - display: 'flex', - gap: '20px', - alignItems: 'center', - justifyContent: 'space-between', - paddingBottom: '15px', + textAlign: 'left', + fontSize: '16px', + fontWeight: '400', + marginTop: '5px', + color: theme.palette.secondary.main, }} > - - {users && - users.length !== 0 && - users.map((user) => ( - - handleModalToggle(user)} - // onClick={() => handleLearnerFullProfile()} - > - - { - handleLearnerFullProfile(user.userId!); - }} - sx={{ - textAlign: 'left', - fontSize: '16px', - fontWeight: '400', - marginTop: '10px', - }} - > - {user.name} - - - {user?.age ? user.age + ' y/o' : 'N/A'} - - - - {/* - {cohortsData[user.userId] && - cohortsData[user.userId].map((cohort) => ( - - - {cohort.name} - - - ))} - */} - - - - - - ))} - {!users?.length && ( - - - {t('COMMON.NO_DATA_FOUND')} - - - )} - - + {user.name} + + + + {user?.age ? `${user.age} y/o` : 'N/A'} + + + + + + + ))} + {!users?.length && ( + + + {t('COMMON.NO_DATA_FOUND')} + + + )} + + + +