Skip to content

Commit 23e65fe

Browse files
authored
Merge pull request #2564 from tekdi/feat-direct-enroll
Feat direct enroll to prod register
2 parents cbc3cb0 + b783a06 commit 23e65fe

File tree

5 files changed

+15
-8
lines changed

5 files changed

+15
-8
lines changed

apps/learner-web-app/src/components/Content/Player.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ const App = ({
7474
useEffect(() => {
7575
const fetch = async () => {
7676
const response = await fetchContent(identifier);
77+
setItem({ content: response });
78+
7779
const rt = (await hierarchyAPI(courseId as string)) as any;
7880
console.log('rt=======>', rt);
7981
const currentPath =
@@ -117,7 +119,8 @@ const App = ({
117119
console.log('response2=======>', mimeType);
118120

119121
setMemetype(mimeType);
120-
setItem({ content: response });
122+
console.log('setItem=======>', response);
123+
121124
if (unitId) {
122125
const course = await hierarchyAPI(courseId as string);
123126
const breadcrum = findCourseUnitPath({

apps/learner-web-app/src/components/themantic/footer/Footer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ const Footer = () => {
214214
textAlign: 'center',
215215
}}
216216
>
217-
© 2025 Pratham
217+
© {new Date().getFullYear()} Pratham
218218
</Typography>
219219
</Box>
220220
</Box>

mfes/content/src/components/Content/List.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,17 +653,20 @@ export default function Content(props: Readonly<ContentProps>) {
653653
})
654654
);
655655
persistFilters(localFilters);
656+
657+
const activeLink = window.location.pathname + window.location.search;
658+
656659
if (propData?.handleCardClick) {
657660
propData.handleCardClick(content, e, rowNumber);
658661
} else if (SUPPORTED_MIME_TYPES.includes(content?.mimeType)) {
659662
router.push(
660663
`${props?._config?.contentBaseUrl ?? ''}/player/${content?.identifier
661-
}?activeLink=${window.location.pathname + window.location.search}`
664+
}?activeLink=${encodeURIComponent(activeLink)}`
662665
);
663666
} else {
664667
router.push(
665668
`${props?._config?.contentBaseUrl ?? ''}/content-details/${content?.identifier
666-
}?activeLink=${window.location.pathname + window.location.search}`
669+
}?activeLink=${encodeURIComponent(activeLink)}`
667670
);
668671
}
669672
} catch (error) {

mfes/scp-teacher-repo/src/components/PlannedSession.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ const PlannedSession: React.FC<PlannedModalProps> = ({
221221
// });
222222

223223
// const courseSubjectLists = getSubjects.map((subject: any) => {
224-
const commonAssociations = getSubjects?.filter(
224+
const commonAssociations = getSubjects?.filter((subject: any) => subject?.status !== "Retired")?.filter(
225225
(assoc: any) =>
226226
// matchState?.associations.filter(
227227
// (item: any) => item.code === assoc.code

mfes/scp-teacher-repo/src/pages/centers/[cohortId]/events/[date]/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -213,17 +213,18 @@ const EventMonthView: React.FC<any> = () => {
213213
const medium = cohortData.customField.find(
214214
(item: CustomField) => item.label === 'MEDIUM'
215215
);
216-
setMedium(medium?.selectedValues?.[0]?.value || '');
216+
console.log("medium=====>", medium?.selectedValues[0]);
217+
setMedium(medium?.selectedValues?.[0] || '');
217218

218219
const grade = cohortData.customField.find(
219220
(item: CustomField) => item.label === 'GRADE'
220221
);
221-
setGrade(grade?.selectedValues?.[0]?.value || '');
222+
setGrade(grade?.selectedValues?.[0] || '');
222223

223224
const board = cohortData.customField.find(
224225
(item: CustomField) => item.label === 'BOARD'
225226
);
226-
setBoard(board?.selectedValues?.[0]?.value || '');
227+
setBoard(board?.selectedValues?.[0] || '');
227228
}
228229
// setCohortDetails(cohortData);
229230
// setCohortName(cohortData?.name);

0 commit comments

Comments
 (0)