diff --git a/src/components/CenterSessionModal.tsx b/src/components/CenterSessionModal.tsx index 185da134..7e77ee1a 100644 --- a/src/components/CenterSessionModal.tsx +++ b/src/components/CenterSessionModal.tsx @@ -1,5 +1,6 @@ import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; +import CircleIcon from '@mui/icons-material/Circle'; import CloseIcon from '@mui/icons-material/Close'; import { Divider } from '@mui/material'; import Modal from '@mui/material/Modal'; @@ -15,6 +16,8 @@ const CenterSessionModal: React.FC = ({ handleClose, title, primary, + center, + date, }) => { const theme = useTheme(); const { t } = useTranslation(); @@ -27,6 +30,7 @@ const CenterSessionModal: React.FC = ({ bgcolor: theme?.palette?.warning['A400'], boxShadow: 24, borderRadius: '16px', + border: 'none', '@media (min-width: 600px)': { width: '450px', }, @@ -52,11 +56,42 @@ const CenterSessionModal: React.FC = ({ sx={{ color: theme?.palette?.warning['A200'], fontSize: '14px', + fontWeight: '500', }} component="h2" > {title} + + + {center} + + + + {date} + + = ({ item }) => { const theme = useTheme(); const { t } = useTranslation(); + const [open, setOpen] = React.useState(false); + const handleOpen = () => setOpen(true); + const handleClose = () => setOpen(false); - return item?.topic ? ( - - - } - aria-controls="panel1-content" - id="panel1-header" - className="accordion-summary" - sx={{ px: 0, m: 0 }} + return ( + <> + {item?.topic ? ( + - - {t('COMMON.TO_BE_TAUGHT')} - - - - - - - {item?.topic} - - - - - - {item?.subtopic} - - - - - - ) : ( - - - + } + aria-controls="panel1-content" + id="panel1-header" + className="accordion-summary" + sx={{ px: 0, m: 0 }} + > + + {t('COMMON.TO_BE_TAUGHT')} + + + + + + + {item?.topic} + + + + + + {item?.subtopic} + + + + + + ) : ( - {t('COMMON.SELECT_TOPIC')} + + + + {t('COMMON.SELECT_TOPIC')} + + + - - - + )} + + {item?.topic ? : } + + ); }; diff --git a/src/pages/centers/[cohortId].tsx b/src/pages/centers/[cohortId].tsx index beb70fd0..e54314b8 100644 --- a/src/pages/centers/[cohortId].tsx +++ b/src/pages/centers/[cohortId].tsx @@ -12,6 +12,7 @@ import AddIcon from '@mui/icons-material/Add'; import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; import Box from '@mui/material/Box'; import CenterSessionModal from '@/components/CenterSessionModal'; +import CohortFacilitatorList from '@/components/CohortFacilitatorList'; import CohortLearnerList from '@/components/CohortLearnerList'; import { CustomField } from '@/utils/Interfaces'; import DeleteCenterModal from '@/components/center/DeleteCenterModal'; @@ -21,16 +22,13 @@ import Header from '@/components/Header'; import KeyboardBackspaceOutlinedIcon from '@mui/icons-material/KeyboardBackspaceOutlined'; import ModeEditOutlineOutlinedIcon from '@mui/icons-material/ModeEditOutlineOutlined'; import MoreVertIcon from '@mui/icons-material/MoreVert'; -import PlannedSession from '@/components/PlannedSession'; import RenameCenterModal from '@/components/center/RenameCenterModal'; import Schedule from './../../components/Schedule'; -import SelectTopic from '@/components/SelectTopic'; import { Session } from '../../utils/Interfaces'; import SessionCard from '@/components/SessionCard'; import SessionCardFooter from '@/components/SessionCardFooter'; import Tab from '@mui/material/Tab'; import Tabs from '@mui/material/Tabs'; -import TopicDetails from '@/components/TopicDetails'; import WeekCalender from '@/components/WeekCalender'; import { getCohortDetails } from '@/services/CohortServices'; import { getSessions } from '@/services/Sessionservice'; @@ -296,7 +294,7 @@ const TeachingCenterDetails = () => { title={'Schedule'} primary={'Next'} > - + void; title: string; - primary: string; + primary?: string; + center?: string; + date?: string; } export interface AttendanceStatusListProps { limit: number; @@ -159,7 +161,6 @@ export interface AttendancePercentageProps { facets: Array; } - export interface OverallAttendancePercentageProps { limit: number; page: number; @@ -170,7 +171,6 @@ export interface OverallAttendancePercentageProps { facets: Array; } - export interface LearnerAttendanceProps { limit: number; page: number; @@ -326,7 +326,6 @@ export interface SessionCardFooterProps { item: Session; } - export interface FieldOption { label: string; value: string;