diff --git a/public/locales/en/common.json b/public/locales/en/common.json index 2ce900ec6..e93845628 100644 --- a/public/locales/en/common.json +++ b/public/locales/en/common.json @@ -444,6 +444,7 @@ "FOUNDATION_COURSE": "Foundation Course", "MAIN_COURSE": "Main Course", "COLLAPSE_ALL": "Collapse All", + "EXPAND_ALL":"Expand All", "RESOURCES": "Resources" } } diff --git a/src/pages/course-planner.tsx b/src/pages/course-planner.tsx index b398b387c..fde9877a1 100644 --- a/src/pages/course-planner.tsx +++ b/src/pages/course-planner.tsx @@ -23,6 +23,15 @@ import { CircularProgressbar, buildStyles } from 'react-circular-progressbar'; const CoursePlanner = () => { const [value, setValue] = React.useState(1); + const [subjects, setSubjects] = React.useState([ + { id: 1, subject: 'Mathematics', circular: 10 }, + { id: 2, subject: 'Science', circular: 50 }, + { id: 2, subject: 'History', circular: 30 }, + { id: 2, subject: 'Geography', circular: 60 }, + { id: 2, subject: 'Marathi', circular: 90 }, + { id: 2, subject: 'Hindi', circular: 70 }, + { id: 2, subject: 'Social Science', circular: 80 }, + ]); const theme = useTheme(); const { t } = useTranslation(); const router = useRouter(); @@ -76,7 +85,7 @@ const CoursePlanner = () => { }} > - Khapari Dharmu (Chimur, Chandrap {/* will come from API */} + Khapari Dharmu (Chimur, Chandrap) {/* will come from API */} @@ -112,7 +121,16 @@ const CoursePlanner = () => { - + { aria-label="secondary tabs example" sx={{ fontSize: '14px', - borderBottom: `1px solid ${theme.palette.primary.contrastText}`, '& .MuiTab-root': { color: '#4D4639', @@ -150,94 +167,107 @@ const CoursePlanner = () => { - { - router.push(`/course-planner-detail`); // Check route - }} - > - - - + + {subjects.map((item, index) => { + return ( + { + router.push(`/course-planner-detail`); // Check route + }} > - - - - - - 10% - - - + + + + + + - - Mathematics {/* will come form API */} + + + {item.circular}% + + + + + + {item.subject} + + + + + + + - - - - - - - + + ); + })} + )}