Skip to content

Commit

Permalink
courses list integration in teacher app module
Browse files Browse the repository at this point in the history
  • Loading branch information
Aar-if committed Nov 6, 2023
1 parent 4bc83fb commit c2cb860
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/teacher-app/modulefederation.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
// lessonplans: `lessonplans@[window.appModules.lessonplans.url]/moduleEntry.js`,
cohort: `cohort@[window.appModules.cohort.url]/moduleEntry.js`,
observation: `observation@[window.appModules.observation.url]/moduleEntry.js`,
mylearning: `mylearning@[window.appModules.mylearning.url]/moduleEntry.js`,
},
filename: "moduleEntry.js",
shared: {
Expand Down
6 changes: 6 additions & 0 deletions packages/teacher-app/src/Routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import MyClasses from "pages/MyClasses";
import MyClassDetails from "pages/MyClassDetails";
import Test from "pages/Test";
import TestObservation from "pages/TestObservation";
import CoursesPage from "pages/CoursesPage";


const ClassDetails = React.lazy(() => import("classes/ClassDetails"));
Expand Down Expand Up @@ -476,4 +477,9 @@ export const routes = [
path: "/testObservation",
component: TestObservation,
},
{
moduleName: "app",
path: "/coursesPage",
component: CoursesPage,
},
];
10 changes: 10 additions & 0 deletions packages/teacher-app/src/pages/CoursesPage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react'
const CourseList = React.lazy(() => import("mylearning/CourseList"));

function CoursesPage() {
return (
<div><CourseList /></div>
)
}

export default CoursesPage

0 comments on commit c2cb860

Please sign in to comment.