diff --git a/src/components/ManageUser.tsx b/src/components/ManageUser.tsx index 860587c4..f0d7293b 100644 --- a/src/components/ManageUser.tsx +++ b/src/components/ManageUser.tsx @@ -481,83 +481,83 @@ const ManageUser: React.FC = ({ }; return (
- {loading ? ( - - ) : ( - <> - {/*
*/} - - - - - - {value === 1 && ( - <> - {!isFromFLProfile && ( - - - - - - - - - )} - - {isFromFLProfile ? ( - { - isMobile ? toggleDrawer('bottom', true, teacherUserId)(event) : handleMenuOpen(event) + <> + {/*
*/} + + + + + + {value === 1 && ( + <> + {!isFromFLProfile && ( + + + + + + )} + + + {isFromFLProfile ? ( + { + isMobile ? toggleDrawer('bottom', true, teacherUserId)(event) : handleMenuOpen(event) + }} + sx={{ + fontSize: '24px', + marginTop: '1rem', + color: theme.palette.warning['300'], + }} + /> + ) : ( + + - ) : ( - + > - + {loading ? ( + + + + ) : ( {users && users.length !== 0 && @@ -671,175 +671,176 @@ const ManageUser: React.FC = ({ )} - + )} - )} - - - - ), - name: 'reassign-block', - }, - { - label: t('COMMON.REASSIGN_BLOCKS_REQUEST'), - icon: ( - - ), - name: 'reassign-block-request', - }, - { - label: t('COMMON.DELETE_USER'), - icon: ( - - ), - name: 'delete-User', - }, - ]} + + )} + + + + ), + name: 'reassign-block', + }, + { + label: t('COMMON.REASSIGN_BLOCKS_REQUEST'), + icon: ( + + ), + name: 'reassign-block-request', + }, + { + label: t('COMMON.DELETE_USER'), + icon: ( + + ), + name: 'delete-User', + }, + ]} + > + - - - {t('COMMON.CENTERS_ASSIGNED', { - block: newStore.block, - })} - - - {centers.length > 0 && - centers.map( - ( - name: - | string - | number - | bigint - | boolean - | React.ReactElement< - any, - string | React.JSXElementConstructor - > - | Iterable - | React.ReactPortal - | Promise - | null - | undefined - ) => ( - - ) - )} - + | Iterable + | React.ReactPortal + | Promise + | null + | undefined + ) => ( + + ) + )} - - - - - - + + + - + + + + + + + {' '} + + + {t('CENTERS.THE_USER_BELONGS_TO_THE_FOLLOWING_COHORT')}{' '} + {removeCohortNames} +
+ {t('CENTERS.PLEASE_REMOVE_THE_USER_FROM_COHORT')} +
+
+
+ {openAddFacilitatorModal && ( + + )} + + )} +
+ - - - {' '} - - - {t('CENTERS.THE_USER_BELONGS_TO_THE_FOLLOWING_COHORT')}{' '} - {removeCohortNames} -
- {t('CENTERS.PLEASE_REMOVE_THE_USER_FROM_COHORT')} -
-
-
- {openAddFacilitatorModal && ( - - )} - - )} - - - )}
); }; diff --git a/src/pages/centers/index.tsx b/src/pages/centers/index.tsx index b6156388..e833151f 100644 --- a/src/pages/centers/index.tsx +++ b/src/pages/centers/index.tsx @@ -197,7 +197,7 @@ const TeachingCenters = () => { return ( <>
- {loading && } + {loading && } {accessGranted('showBlockLevelData', accessControl, userRole) ? ( <> @@ -299,6 +299,9 @@ const TeachingCenters = () => { '& .MuiOutlinedInput-root': { boxShadow: 'none', }, + '@media (min-width: 900px)': { + width: '90%', + }, }} InputProps={{ endAdornment: ( @@ -323,11 +326,22 @@ const TeachingCenters = () => { /> - - + +